コード例 #1
0
        public OutboxWorkerStrategy(OutboxMonitor monitor, int pollDelayMs)
        {
            Assert.ArgumentNotNull(monitor, nameof(monitor));
            Assert.IsInRange(pollDelayMs, nameof(pollDelayMs), 1000, int.MaxValue);

            _monitor     = monitor;
            _pollDelayMs = pollDelayMs;
        }
コード例 #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);
        }
コード例 #3
0
 public Token(OutboxMonitor monitor, long id)
 {
     _monitor = monitor;
     _id      = id;
 }