コード例 #1
0
ファイル: eShopBot.cs プロジェクト: hhy37/eShopOnContainersAI
        private (UserInfo, DialogContext) CreateContext(ITurnContext context)
        {
            var dialogs = new DialogSet();

            dialogs.AddCatalogDialog(dialogFactory);
            dialogs.AddCatalogFilterDialog(dialogFactory);

            var userState = context.GetUserState <UserInfo>();
            var state     = context.GetConversationState <eShopBotState>();
            var dialogCtx = dialogs.CreateContext(context, state);

            return(userState, dialogCtx);
        }
コード例 #2
0
 public static void AddCatalogDialog(this DialogSet self, IDialogFactory dialogFactory)
 {
     self.AddCatalogDialog(dialogFactory.CatalogDialog);
 }