public async Task Logout(IDialogContext context, LuisResult result) { context.Cleanup(); await context.Logout(); context.Wait(this.MessageReceived); }
private async Task OnLogoutRequested(IDialogContext context, IAwaitable <bool> confirmation) { var result = await confirmation; if (result) { context.Cleanup(); await context.Logout(); } context.Wait(this.MessageReceived); }