add WorkerOptions.
- bind IntervalInMin with worker task delay
This commit is contained in:
@@ -34,7 +34,10 @@ try
|
||||
.ToList()
|
||||
.ForEach(file => config.AddJsonFile(file, true, true));
|
||||
|
||||
#region Worker
|
||||
builder.Services.AddHostedService<Worker>();
|
||||
builder.Services.Configure<WorkerOptions>(config.GetSection("Worker"));
|
||||
#endregion
|
||||
|
||||
#region Add DB Context, EG Inf. and Services
|
||||
var cnnStrName = "Default";
|
||||
|
||||
Reference in New Issue
Block a user