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

            _monitor     = monitor;
            _pollDelayMs = pollDelayMs;
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public Token(OutboxMonitor monitor, long id)
 {
     _monitor = monitor;
     _id      = id;
 }