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); }
public static void AddCatalogDialog(this DialogSet self, IDialogFactory dialogFactory) { self.AddCatalogDialog(dialogFactory.CatalogDialog); }