public CommittingEventQueue(string aggregateRootId, ICommittingEventHandler handler, ILogger <CommittingEventQueue> logger) { this.aggregateRootId = aggregateRootId; this.handler = handler; this.logger = logger; queue = new BlockingCollection <CommittingEvent>(new ConcurrentQueue <CommittingEvent>()); syncLock = new object(); lastActiveOn = DateTime.UtcNow; }
public CommittingEventQueueFactory(ICommittingEventHandler handler, ILoggerFactory loggerFactory) { this.handler = handler; this.loggerFactory = loggerFactory; }