SC.Microservice.BackgroundJobs.Template
3.1.1
dotnet new install SC.Microservice.BackgroundJobs.Template::3.1.1
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
-
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.