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