add Background Task
This commit is contained in:
parent
75ddebba37
commit
3ae9be5869
6 changed files with 211 additions and 2 deletions
|
|
@ -5,6 +5,7 @@ using BMA.EHR.Infrastructure;
|
|||
using BMA.EHR.Infrastructure.Persistence;
|
||||
using BMA.EHR.Insignia.Service;
|
||||
using BMA.EHR.Insignia.Service.Filters;
|
||||
using BMA.EHR.Insignia.Service.Services;
|
||||
using Hangfire;
|
||||
using Hangfire.Common;
|
||||
using Hangfire.MySql;
|
||||
|
|
@ -26,7 +27,6 @@ var builder = WebApplication.CreateBuilder(args);
|
|||
var issuer = builder.Configuration["Jwt:Issuer"];
|
||||
var key = builder.Configuration["Jwt:Key"];
|
||||
|
||||
|
||||
IdentityModelEventSource.ShowPII = true;
|
||||
|
||||
builder.Services.AddHttpContextAccessor();
|
||||
|
|
@ -88,6 +88,9 @@ var builder = WebApplication.CreateBuilder(args);
|
|||
builder.Services.AddLeaveApplication();
|
||||
builder.Services.AddLeavePersistence(builder.Configuration);
|
||||
|
||||
builder.Services.AddSingleton<IBackgroundTaskQueue, BackgroundTaskQueue>();
|
||||
builder.Services.AddHostedService<InsigniaRequestProcessService>();
|
||||
|
||||
|
||||
|
||||
builder.Services.AddControllers(options =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue