コード例 #1
0
 private Task <StepResult <EmailRouteState> > emailWasSentLogic(StateAccess <EmailRouteState> access, EmailSent es)
 {
     Console.WriteLine("Hey! An email was sent: {0}", es);
     _tcs.SetResult(true);
     return(Task.Run(() => StepResult.Cancel <EmailRouteState>()));
 }
コード例 #2
0
 private static Task <StepResult <EmailRouteState> > timeoutLogic(StateAccess <EmailRouteState> access, TimeoutMessage tm)
 {
     return(Task.Run(() => StepResult.Cancel <EmailRouteState>()));
 }