public UserRegistrationDialog( ConversationStateAccessors conversationStateAccessors, IUserBotRepository userRepository, IHubContext <ChatHub> chatHub) : base(DialogId) { this.conversationStateAccessors = conversationStateAccessors; this.userRepository = userRepository; this.chatHub = chatHub; this.userFaker = new Faker(); WaterfallStep[] steps = { this.AskForRegistration, this.AskGender, this.ApplyGender, this.SuggestName, this.Register }; this.AddDialog(new WaterfallDialog(WaterfallDialogId, steps)); this.AddDialog(new ChoicePrompt(ChoicePromptId)); this.AddDialog(new ConfirmPrompt(ConfirmPromptId)); }
public Bot( IUserBotRepository userRepository, ConversationStateAccessors conversationStateAccessors, UserRegistrationDialog userRegistrationDialog, IHubContext <ChatHub> chatHub, ILogger <Bot> logger) { this.userRepository = userRepository; this.conversationStateAccessors = conversationStateAccessors; this.chatHub = chatHub; this.dialogs = new DialogSet(this.conversationStateAccessors.DialogStateAccessor); this.dialogs.Add(userRegistrationDialog); }