public BotSample(ITranslateHandler translateHandler, IDialogFactory dialogFactory, ILuisRecognizer recognizer, ITextConverter textConverter, BotAccessors botAccessors) :
     base(translateHandler, null, dialogFactory, recognizer, textConverter)
 {
     Dialogs = dialogFactory.UseDialogAccessor(botAccessors.DialogStateAccessor)
               .Create <StockDialog>()
               .Create <TextPrompt>("prompt")
               .Build();
 }
Beispiel #2
0
 public BotDemo(ITranslateHandler translateHandler, IDialogFactory dialogFactory, ILuisRecognizer recognizer, ITextConverter textConverter, BotAccessors accessors)
     : base(translateHandler, null, dialogFactory, recognizer, textConverter)
 {
     Dialogs = dialogFactory.UseDialogAccessor(accessors.DialogStateAccessor)
               .Create <AvionDialog>(AvionDialog.ID, accessors.AvionStateAccessor)
               .Create <TextPrompt>("prompt")
               .Build();
 }