SC.Microservice.BackgroundJobs.Template 3.1.1

dotnet new install SC.Microservice.BackgroundJobs.Template::3.1.1
This package contains a .NET Template Package you can call from the shell/command line.

SC.Microservice.BackgroundJobs.Template

The application is written in the .Net - using .NET 8. This is solution template for creating Api following the principles of Clean Architecture. Create new project base on this template by setup Nuget package.

Installation

  • Install the latest .NET 8 SDK.
  • Install RabbitMQ latest.

Install the dotnet new template:

dotnet new install SC.Microservice.BackgroundJobs.Template::3.1.1

Create new project:

dotnet new sc-jobs-sln -n MyProjectName

Technologies:

  • ASP.NET 8
  • Entity Framework Core 8
  • MediatR
  • AutoMapper
  • MassTransit
  • RabbitMQ
  • Serilog

Database :

Db type support SQLServer, MariaDB, PostgerSQL. The template is configured to use SQL Server by default. If you would prefer to use MariaDB or PostgerSQL, change "DatabaseType" in file: "appsettings.json"

Jobs.Scheduler:

  • Change ConnectionStrings in appsettings.json

Jobs.Infrastructure:

  • Create local database
  • Open View : Package Manager Console (Visual Studio). Change Default project to "microservices\Jobs\Jobs.Infrastructure"
  • Run command:
PM> Update-database 

Jobs.ScheduleUI:

  • Change ConnectionStrings in appsettings.json

Config Jobs.Scheduler and Jobs.ScheduleUI IIS:

  • Under "Page" Advanced Settings: "Preload Enabled" must be set to "true" (this forces app to run after every app pool recycle and on startup)
  • Under "App Pool" Advanced settings: "Start mode" must be set to "AlwaysRunning", time Interval = 0
  • "Page" in IIS must have http allowed (since preload enabled works only on http and not via https)

Support

If you are having problems, please let me know by: https://nguyenson1303.blogspot.com/

License

MIT

  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.1.1 2,818 12/8/2023
3.1.0 235 12/6/2023
3.0.0 537 11/23/2023
2.0.1 141 9/21/2023
1.3.1 175 9/15/2023
1.3.0 186 9/15/2023
1.2.0 199 8/29/2023
1.1.1 191 8/8/2023
1.1.0 266 8/4/2023
1.0.0 281 8/4/2023