Exemplo n.º 1
0
 private static async Task HandleAsPaused <T>(T request, string text, Uri href,
                                              NotifyingActionOverrideAttribute info,
                                              Tuple <NextActionInfo, ICommandBase> abortAction) where T : IHaveGameId, ICommandBase
 {
     var nextAction = CreateNextActionFromRequest(request, text, href, "Continue");
     await
     request.FromRequest($"{info.Noun} {abortAction.Item1.Title.GetPastFromVerb()}", text,
                         nextAction.Item1.Href, ActionType.Cancel,
                         nextAction).Raise().ConfigureAwait(false);
 }
Exemplo n.º 2
0
 private static async Task HandleAsFailed <T>(T request, string text, Uri href,
                                              NotifyingActionOverrideAttribute info)
     where T : IHaveGameId, ICommandBase
 {
     var nextAction = CreateNextActionFromRequest(request, text, href, "Retry");
     await
     request.FromRequest($"{info.Noun} {"Fail".GetPastFromVerb()}", text, nextAction.Item1.Href,
                         ActionType.Fail,
                         nextAction).Raise().ConfigureAwait(false);
 }