Beispiel #1
0
 /// <summary>
 /// This sweeper clears an outbox of any outstanding messages within the time interval
 /// </summary>
 /// <param name="milliSecondsSinceSent">How long can a message sit in the box before we attempt to resend</param>
 /// <param name="outbox">What is the outbox you want to check -- should be the same one supplied to the command processor below</param>
 /// <param name="commandProcessor">Who should post the messages</param>
 public OutboxSweeper(double milliSecondsSinceSent, IAmAnOutboxViewer <Message> outbox, IAmACommandProcessor commandProcessor)
 {
     _milliSecondsSinceSent = milliSecondsSinceSent;
     _outbox           = outbox;
     _commandProcessor = commandProcessor;
 }
Beispiel #2
0
 public OutboxSweeper(IAmAnOutboxViewer <Message> outbox, IAmACommandProcessor commandProcessor)
 {
     _outbox           = outbox;
     _commandProcessor = commandProcessor;
 }
Beispiel #3
0
 public TimedOutboxSweeper(IAmAnOutboxViewer <Message> outbox, IAmACommandProcessor commandProcessor, ILogger <TimedOutboxSweeper> logger)
 {
     _outbox           = outbox;
     _commandProcessor = commandProcessor;
     s_logger          = logger;
 }