Inits the workflow configuration

This commit is contained in:
Paul Schneider 2024-02-25 18:05:10 +00:00
commit e6e098b32e
286 changed files with 33660 additions and 64632 deletions

View file

@ -50,9 +50,10 @@ namespace Yavsc.Services
readonly ApplicationDbContext _dbContext;
readonly IStringLocalizer _localizer;
public HubConnectionManager()
public HubConnectionManager(IServiceScopeFactory ssf )
{
var scope = Startup.Services.GetRequiredService<IServiceScopeFactory>().CreateScope();
var scope = ssf.CreateScope();
_dbContext = scope.ServiceProvider.GetService<ApplicationDbContext>();
var loggerFactory = scope.ServiceProvider.GetService<ILoggerFactory>();
_logger = loggerFactory.CreateLogger<HubConnectionManager>();