Пример #1
0
 public Task Timeout(DelayReply state, IMessageHandlerContext context)
 {
     //reply to originator must be used here since the sender of the incoming message is the TimeoutManager and not the requesting saga
     return(ReplyToOriginator(context, new ResponseFromOtherSaga
     {
         SomeCorrelationId = Data.CorrIdForRequest
     }));
 }
 public void Timeout(DelayReply state)
 {
     //reply to originator must be used here since the sender of the incoming message the timeoutmanager and not the requesting saga
     ReplyToOriginator(new ResponseFromOtherSagaFromTimeout //change this line to Bus.Reply(new ResponseFromOtherSaga  and see it fail
     {
         SomeCorrelationId = Data.CorrIdForRequest          //wont be needed in the future
     });
 }
 public Task Timeout(DelayReply state, IMessageHandlerContext context)
 {
     //reply to originator must be used here since the sender of the incoming message the timeoutmanager and not the requesting saga
     return(ReplyToOriginator(context, new ResponseFromOtherSaga //change this line to Bus.Reply(new ResponseFromOtherSaga  and see it fail
     {
         SomeCorrelationId = Data.CorrIdForRequest               //wont be needed in the future
     }));
 }
Пример #4
0
 public void Timeout(DelayReply state)
 {
     SendReply();
 }
 public Task Timeout(DelayReply state, IMessageHandlerContext context)
 {
     return(SendReply(context));
 }