Пример #1
0
        public bool HandleTimeout(TestSagaTimeout timeout)
        {
            var message = ((TestSagaTimeout)timeout).MessageToInclude;

            Emit(new TestSagaTimeoutOccurred(message));
            return(true);
        }
 public void Timeout(TestSagaTimeout state)
 {
     Logger.InfoFormat("[{0}] \tSaga instance timeout fired", Data.UserId);
 }
 public Task Timeout(TestSagaTimeout state, IMessageHandlerContext context)
 {
     Logger.InfoFormat("[{0}] \tSaga instance timeout fired", Data.UserId);
     return(Task.FromResult(0));
 }