SandwichOrder
class defines the form and the enumerations define the options for building a sandwich.The class also includes the static BuildForm
method that uses FormBuilderto create the form and define a simple welcome message.Microsoft.Bot.Builder.FormFlow
namespace.Conversation.SendAsync
method calls the static MakeRootDialog
method,which in turn, calls the FormDialog.FromForm
method to create the SandwichOrder
form.SandwichOrder.Sandwich
property.The form automatically generates the prompt, 'Please select a sandwich',where the word 'sandwich' in the prompt derives from the property name Sandwich
.The SandwichOptions
enumeration defines the choices that are presented to the user,with each enumeration value being automatically broken into words based upon changes in case and underscores.SandwichOrder.Length
.FormCanceledException<T>
class.