protected ComponentBuilder(
     IFeedbackBotStateRepository state,
     IOptions <FeatureToggles> features,
     IOptions <BotSettings> botSettings)
 {
     this.BotSettings = botSettings.Value ?? throw new ArgumentNullException(nameof(botSettings));
     this.Features    = features.Value ?? throw new ArgumentNullException(nameof(features));
     this.State       = state ?? throw new ArgumentNullException(nameof(state));
 }
 /// <inheritdoc />
 public MultipleChoiceDialog(
     string dialogId,
     IFeedbackBotStateRepository state,
     BotSettings botSettings,
     FeatureToggles features,
     IFeedbackService feedbackService)
     : base(dialogId)
 {
     this.botSettings     = botSettings;
     this.features        = features;
     this.state           = state;
     this.feedbackService = feedbackService;
 }
        /// <inheritdoc />
        public FreeTextDialog(
            string dialogId,
            IFeedbackBotStateRepository state,
            BotSettings botSettings,
            FeatureToggles features)
            : base(dialogId)
        {
            this.InitialDialogId = dialogId;

            this.botSettings = botSettings;
            this.features    = features;
            this.state       = state;
        }
Beispiel #4
0
 public StartDialogCommand(IFeedbackBotStateRepository state, BotConfiguration botConfiguration)
     : base("bot--dialog--start", botConfiguration)
 {
     this.state = state ?? throw new ArgumentNullException(nameof(state));
 }
 protected AdminCommand(string triggerWord, BotConfiguration botConfiguration)
 {
     this.Trigger          = triggerWord ?? throw new ArgumentNullException(nameof(triggerWord));
     this.BotConfiguration = botConfiguration;
 }
Beispiel #6
0
 public ExpireCommand(IFeedbackBotStateRepository state, BotConfiguration botConfiguration)
     : base("bot--state--expire", botConfiguration)
 {
     this.state = state ?? throw new ArgumentNullException(nameof(state));
 }
Beispiel #7
0
 public ResetDialogCommand(IFeedbackBotStateRepository state, BotConfiguration botConfiguration)
     : base("bot--state--reset", botConfiguration)
 {
     this.state = state;
 }