protected override async Task PostAsync(IActivity item, string state, CancellationToken token) { InterruptionDialog helpInterruptionDialog = new InterruptionDialog(TextProvider.Provide(TextCategory.INTERRUPTION_Help)); IDialog <IMessageActivity> helpInterruption = helpInterruptionDialog.Void <object, IMessageActivity>(); task.Call(helpInterruption, null); //await task.PollAsync(token); }
//ez reagál a felhasználónak, amennyiben a score alapján ez a dialógus veszi át az irányítást protected override async Task PostAsync(IActivity item, string state, CancellationToken token) { InterruptionDialog cancelInterruptionDialog = new InterruptionDialog(TextProvider.Provide(TextCategory.INTERRUPTION_Cancel)); IDialog <IMessageActivity> cancelInterruption = cancelInterruptionDialog.Void <object, IMessageActivity>(); task.Call(cancelInterruption, null); task.Reset(); }