Пример #1
0
 public ElasticSearchUpdateService(IServiceScopeFactory scopeFactory, ElasticClient elasticClient, ILoggerFactory loggerFactory, BackgroundTaskQueue taskQueue)
 {
     _client       = elasticClient;
     _scopeFactory = scopeFactory;
     _logger       = loggerFactory.CreateLogger <ElasticSearchUpdateService>();
     _taskQueue    = taskQueue;
     if (_client != null)
     {
         RegisterUpdateEvents();
     }
 }
Пример #2
0
 public BackgroundJobService(BackgroundTaskQueue taskQueue, ILoggerFactory loggerFactory, IServiceScopeFactory scopeFactory)
 {
     _logger       = loggerFactory.CreateLogger <BackgroundJobService>();
     _queue        = taskQueue;
     _scopeFactory = scopeFactory;
 }
Пример #3
0
 public MessageUtil(BlogContext db, UsersContext udb, IMemoryCache cache, BackgroundTaskQueue taskQueue) : base(db, udb, cache)
 {
     _taskQueue = taskQueue;
 }
Пример #4
0
 public AdminUtil(BackgroundTaskQueue taskQueue)
 {
     _taskQueue = taskQueue;
 }