public async Task MessageReceivedAsync(IDialogContext context, IAwaitable <object> result) { var message = await result as Activity; int length = (message.Text ?? string.Empty).Length; await _chat.PostAsync(context, $"You sent {message.Text} which was {length} characters"); context.Wait(MessageReceivedAsync); }
public async Task None(IDialogContext context, LuisResult result) { string message = string.Format(BotResponses.RootLuisDialog_None, result.Query); await _chat.PostAsync(context, message); context.Wait(this.MessageReceived); }