Exemplo n.º 1
0
 public BackgroundNotificationHostedService(
     IBackgroundNotificationQueue taskQueue,
     IServiceScopeFactory serviceScopeFactory,
     ILoggerFactory loggerFactory
     )
 {
     TaskQueue = taskQueue;
     _logger   = loggerFactory.CreateLogger <BackgroundNotificationHostedService>();
     _mediator = serviceScopeFactory.CreateScope().ServiceProvider.GetService <IMediator>();
 }
Exemplo n.º 2
0
 public BackgroundPublisher(
     IBackgroundNotificationQueue backgroundNotificationQueue
     )
 {
     _backgroundNotificationQueue = backgroundNotificationQueue;
 }