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>())); }
private static Task <StepResult <EmailRouteState> > timeoutLogic(StateAccess <EmailRouteState> access, TimeoutMessage tm) { return(Task.Run(() => StepResult.Cancel <EmailRouteState>())); }