public void ScheduleMailbox(ProcessingMessageMailbox <X, Y, Z> mailbox)
 {
     if (mailbox.EnterHandlingMessage())
     {
         Task.Factory.StartNew(mailbox.Run);
     }
 }
 public void ScheduleMailbox(ProcessingMessageMailbox <X, Y, Z> mailbox)
 {
     Task.Factory.StartNew(obj =>
     {
         var currentMailbox = obj as ProcessingMessageMailbox <X, Y, Z>;
         if (currentMailbox.EnterHandlingMessage())
         {
             Task.Factory.StartNew(currentMailbox.Run);
         }
     }, mailbox);
 }
Exemple #3
0
 public void SetMailbox(ProcessingMessageMailbox <ProcessingApplicationMessage, IApplicationMessage, bool> mailbox)
 {
     _mailbox = mailbox;
 }
 public void ScheduleMailbox(ProcessingMessageMailbox <X, Y> mailbox)
 {
     Task.Factory.StartNew(async() => await mailbox.Run());
 }
Exemple #5
0
 public void SetMailbox(ProcessingMessageMailbox <ProcessingDomainEventStreamMessage, DomainEventStreamMessage, bool> mailbox)
 {
     _mailbox = mailbox;
 }
 public void SetMailbox(ProcessingMessageMailbox <ProcessingPublishableExceptionMessage, IPublishableException, bool> mailbox)
 {
     _mailbox = mailbox;
 }
 public void ScheduleMailbox(ProcessingMessageMailbox <X, Y> mailbox)
 {
     Task.Factory.StartNew(mailbox.Run);
 }