如何在Form中調用對話框? 我想調用位置對話框https://github.com/Microsoft/BotBuilder-Location來獲取地址。 謝謝。如何從FormFlow調用Dialog
[Serializable]
public class IssueShares
{
[Prompt("Please enter holder name:")]
public string HolderName;
[Prompt("Please enter holder address:")]
**[Call(typeof(AddressDialog))]**
public Address Address;
[Prompt("Enter shares class:")]
public string SharesClass { get; set; }
[Prompt("How many shares your issue?")]
[Describe("Number of shares")]
public int NumberOfShares { get; set; }
}
[Serializable]
public class AddressDialog : IDialog<Address>
{
public Task StartAsync(IDialogContext context)
{
context.Wait(MessageReceived);
return Task.CompletedTask;
}
private async Task MessageReceived(IDialogContext context, IAwaitable<object> result)
{
// some logic
context.Done(address);
}
}
這不是目前的特徵。 – JasonSowers