Esempio n. 1
0
 public WorkItemJob(IQueue <WorkItemData> queue, IMessageBus messageBus, WorkItemHandlers handlers, ILoggerFactory loggerFactory = null)
 {
     _messageBus = messageBus;
     _handlers   = handlers;
     _queue      = queue;
     _logger     = loggerFactory.CreateLogger(GetType());
 }
Esempio n. 2
0
 public WorkItemJob(IQueue <WorkItemData> queue, IMessagePublisher publisher, WorkItemHandlers handlers, ILoggerFactory loggerFactory = null)
 {
     _publisher = publisher;
     _handlers  = handlers;
     _queue     = queue;
     _logger    = loggerFactory?.CreateLogger(GetType()) ?? NullLogger.Instance;
 }
Esempio n. 3
0
 public WorkItemJob(IQueue <WorkItemData> queue, IMessageBus messageBus, WorkItemHandlers handlers, ILoggerFactory loggerFactory = null) : base(queue, loggerFactory)
 {
     _messageBus  = messageBus;
     _handlers    = handlers;
     AutoComplete = true;
 }
Esempio n. 4
0
 public WorkItemJob(IQueue <WorkItemData> queue, IMessageBus messageBus, WorkItemHandlers handlers) : base(queue)
 {
     _messageBus  = messageBus;
     _handlers    = handlers;
     AutoComplete = true;
 }