private async Task <DialogTurnResult> step1Async(WaterfallStepContext sc, CancellationToken cancellationToken) { var prompt = $"I can repeat what you say and type {Bot.INTERRUPTION_COMMAND_QUIT} whenever you want to exit this skill."; if (sc.Options != null && sc.Options is DialogOptions options && options.IsInLoop) { prompt = String.Empty; } return(await sc.PromptAsync( nameof(TextPrompt), new PromptOptions { Prompt = MessageFactoryEx.Text(prompt), })); }
private async Task <DialogTurnResult> step1Async(WaterfallStepContext sc, CancellationToken cancellationToken) { var prompt = $"I can recognize car model. Could you upload a photo of a car? Type {Bot.INTERRUPTION_COMMAND_QUIT} whenever you want to exit this skill."; if (sc.Options != null && sc.Options is DialogOptions options && options.IsInLoop) { prompt = String.Empty; } var retryPrompt = $"Let's retry or type {Bot.INTERRUPTION_COMMAND_QUIT} to exit."; return(await sc.PromptAsync( nameof(AttachmentPrompt), new PromptOptions { Prompt = MessageFactoryEx.Text(prompt), RetryPrompt = MessageFactoryEx.Text(retryPrompt), }, cancellationToken)); }