public OutboxWorkerStrategy(OutboxMonitor monitor, int pollDelayMs)
        {
            Assert.ArgumentNotNull(monitor, nameof(monitor));
            Assert.IsInRange(pollDelayMs, nameof(pollDelayMs), 1000, int.MaxValue);

            _monitor     = monitor;
            _pollDelayMs = pollDelayMs;
        }
Example #2
0
        public OutboxModule(IBusBase messageBus, int pollDelayMs)
        {
            Assert.ArgumentNotNull(messageBus, nameof(messageBus));
            Assert.IsInRange(pollDelayMs, nameof(pollDelayMs), 1000, int.MaxValue);

            _messageBus = messageBus;
            Monitor     = new OutboxMonitor(messageBus.Logger, messageBus.WorkerPool, pollDelayMs);
        }
 public Token(OutboxMonitor monitor, long id)
 {
     _monitor = monitor;
     _id      = id;
 }