report placement, retire

This commit is contained in:
Bright 2025-01-16 17:06:23 +07:00
parent 1b04e2dfc3
commit 082f4b2f59
6 changed files with 984 additions and 29 deletions

View file

@ -101,6 +101,11 @@ var builder = WebApplication.CreateBuilder(args);
var defaultConnection = builder.Configuration.GetConnectionString("DefaultConnection");
builder.Services.AddDbContext<ApplicationDBContext>(options =>
options.UseMySql(defaultConnection, ServerVersion.AutoDetect(defaultConnection)));
// Register DisciplineDbContext
var disciplineConnection = builder.Configuration.GetConnectionString("DisciplineConnection");
builder.Services.AddDbContext<DisciplineDbContext>(options =>
options.UseMySql(disciplineConnection, ServerVersion.AutoDetect(disciplineConnection)));
builder.Services.AddHealthChecks();
// Add Hangfire services.
builder.Services.AddHangfire(configuration => configuration