public BugTypeDialog(string dialogId, BotStateService botStateService, LuisService luisService) : base(dialogId)
        {
            _botStateService = botStateService ?? throw new System.ArgumentNullException(nameof(botStateService));
            _luisService     = luisService ?? throw new System.ArgumentNullException(nameof(luisService));

            InitializeWaterfallDialog();
        }
Example #2
0
        public NoSymptomeDialog(string dialogId, BotStateService botStateService, BotServices botServices) : base(dialogId)
        {
            _botStateService = botStateService ?? throw new System.ArgumentNullException(nameof(botStateService));
            _botServices     = botServices ?? throw new System.ArgumentNullException(nameof(botServices));

            InitializeWaterfallDialog();
        }
Example #3
0
        public MainDialog(BotStateService botStateService, LuisService luisService) : base(nameof(MainDialog))
        {
            _botStateService = botStateService ?? throw new System.ArgumentNullException(nameof(botStateService));
            _luisService     = luisService ?? throw new System.ArgumentNullException(nameof(luisService));;

            InitializeWaterfallDialog();
        }
Example #4
0
        public MainDialog(BotStateService botStateService, BotServices botServices) : base(nameof(MainDialog))
        {
            _botStateService = botStateService ?? throw new System.ArgumentNullException(nameof(botStateService));
            _botServices     = botServices ?? throw new System.ArgumentNullException(nameof(botServices));

            InitializeWaterfallDialog();
        }
Example #5
0
        public AdapterFrameworkHandler(IConfiguration configuration, ILogger <BotFrameworkHttpAdapter> logger, BotStateService botService, ConversationState conversationState = null)
            : base(configuration, logger)
        {
            _logger     = logger;
            _botService = botService;

            //This method is triggered when an exception is thrown somewhere within a Dialog.
            OnTurnError = async(turnContext, exception) =>
            {
                // Log any leaked exception from the application.
                logger.LogError($"Exception caught : {exception.Message} {JsonConvert.SerializeObject(exception)}");

                // Send a catch-all apology to the user.
                await turnContext.SendActivityAsync(ChannelFormattingService.FormatSimpleMessage(turnContext, "Sorry, it looks like something went wrong. Please refresh the page and try again."));

                if (conversationState != null)
                {
                    try
                    {
                        // Delete the conversationState for the current conversation to prevent the
                        // bot from getting stuck in a error-loop caused by being in a bad state.
                        await conversationState.DeleteAsync(turnContext);
                    }
                    catch (Exception e)
                    {
                        logger.LogError($"Exception caught on attempting to Delete ConversationState : {e.Message}");
                    }
                }
            };
        }
 public QuarterlyRevenueDialog(string dialogId, BotStateService botStateService, BotServices botServices, IFinancialServices financialServices) : base(dialogId)
 {
     _botStateService   = botStateService ?? throw new System.ArgumentNullException(nameof(botStateService));
     _botServices       = botServices ?? throw new System.ArgumentNullException(nameof(botServices));
     _financialServices = financialServices ?? throw new System.ArgumentNullException(nameof(financialServices));
     InitializeWaterfallDialog();
 }
Example #7
0
 //Injecting Variables botservice, dialog type and logger object, checking for nulls and setting the to private variables
 public DialogBot(BotServices botServices, BotStateService botStateService, T dialog, ILogger <DialogBot <T> > logger)
 {
     _botStateService = botStateService ?? throw new System.ArgumentNullException(nameof(botStateService));
     _dialog          = dialog ?? throw new System.ArgumentNullException(nameof(dialog));
     _logger          = logger ?? throw new System.ArgumentNullException(nameof(logger));
     _botServices     = botServices ?? throw new System.ArgumentNullException(nameof(botServices));
 }
Example #8
0
        public SendEmailDialog(string dialogId, BotStateService botStateService, BotServices botServices) : base(dialogId)
        {
            _botStateService = botStateService ?? throw new ArgumentNullException($"{nameof(botStateService)}");
            _botServices     = botServices ?? throw new ArgumentNullException($"{nameof(botServices)}");

            InitializeWaterfallDialog();
        }
Example #9
0
        public ReintentarOtpDialog(string dialogId, BotStateService botStateService, int minutosNumeroValido) : base(dialogId)
        {
            _botStateService     = botStateService;
            _minutosNumeroValido = minutosNumeroValido;

            InicializarCascada();
        }
Example #10
0
 public MainDialogBot(BotStateService botService, RecognitionServices luisService, ILogger <MainDialogBot <T> > logger, T Dialog)
 {
     _botService  = botService;
     _dialog      = Dialog;
     _luisService = luisService;
     _logger      = logger;
 }
        public ObtenerReporteDialog(string dialogId, BotStateService botStateService, int minutosVencerNumero) : base(dialogId)
        {
            _botStateService     = botStateService ?? throw new ArgumentNullException(nameof(botStateService));
            _minutosVencerNumero = minutosVencerNumero;

            //Mandamos a confifurar este dialogo
            InicializarCascada();
        }
Example #12
0
        public ProactiveBot(ConcurrentDictionary <string, ConversationReference> conversationReferences, BotStateService botStateService, UserState
                            userState)
        {
            _conversationReferences = conversationReferences;

            _botStateService = botStateService ?? throw new System.ArgumentNullException(nameof(botStateService));
            _userState       = userState ?? throw new NullReferenceException(nameof(userState));
        }
        public UserRegistrationDialog(string dialogId, BotStateService botStateService) : base(dialogId)
            //IFileUtility fileUtility, IConfiguration configuration
        {
            _botStateService = botStateService ?? throw new ArgumentNullException(nameof(botStateService));
            // _configuration = configuration;
            // _fileUtility = fileUtility;

            InitializeWaterfallDialog();
        }
Example #14
0
        public MainDialog(BotStateService botStateService,
                          IConfiguration configuration,
                          IFileUtility fileUtility)
        {
            _botStateService = botStateService ?? throw new ArgumentNullException(nameof(botStateService));
            _configuration   = configuration;
            _fileUtility     = fileUtility;

            InitializeWaterfallDialog();
        }
Example #15
0
 public FirstDialog(string dialogId, BotStateService botStateService) : base(dialogId)
 {
     _botStateService = botStateService ?? throw new ArgumentNullException(nameof(botStateService));
     if (dialogId == $"{ nameof(MainDialog)}.first")
     {
         InitializeWaterfallDialog1();
     }
     else
     {
         InitializeWaterfallDialog2();
     }
 }
Example #16
0
 public NotifyController(IBotFrameworkHttpAdapter adapter, IConfiguration configuration, ConcurrentDictionary <string, ConversationReference> conversationReferences, BotStateService botStateService)
 {
     _adapter = adapter;
     _conversationReferences = conversationReferences;
     _appId           = configuration["MicrosoftAppId"];
     _configuration   = configuration;
     _botStateService = botStateService ?? throw new System.ArgumentNullException(nameof(botStateService));
     // If the channel is the Emulator, and authentication is not in use,
     // the AppId will be null.  We generate a random AppId for this case only.
     // This is not required for production, since the AppId will have a value.
     if (string.IsNullOrEmpty(_appId))
     {
         _appId = Guid.NewGuid().ToString(); //if no AppId, use a random Guid
     }
 }
Example #17
0
        public MainDialog(IConfiguration configuration, ILogger <MainDialog> logger, BotService botServices, BotStateService botStateService)
            : base(nameof(MainDialog))
        {
            _botServices     = botServices ?? throw new ArgumentNullException(nameof(botServices));
            _botStateService = botStateService ?? throw new ArgumentNullException(nameof(botStateService));

            Configuration = configuration;
            _logger       = logger;

            AddDialog(new TextPrompt(nameof(TextPrompt)));
            AddDialog(new BookingDialog());
            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                IntroStepAsync,
                FinalStepAsync,
            }));

            // The initial child Dialog to run.
            InitialDialogId = nameof(WaterfallDialog);
        }
Example #18
0
 public MainDialog(BotStateService botService, RecognitionServices luisService) : base(nameof(MainDialog), botService, luisService)
 {
     _botService  = botService;
     _luisService = luisService;
     InitializeDialog();
 }
Example #19
0
 public FundDocumentsDialog(string dialogId, BotStateService botService, RecognitionServices luisService) : base(dialogId, botService, luisService)
 {
     InitializeDialog();
     _botService = botService;
 }
 public FeedbackBot(BotStateService botStateservice)
 {
     _botStateService = botStateservice ?? throw new System.ArgumentNullException(nameof(botStateservice));
 }
Example #21
0
 public UserRegistrationDialog(string dialogId, BotStateService botStateService) : base(dialogId)
 {
     _botStateService = botStateService ?? throw new System.ArgumentNullException(nameof(botStateService));
     InitializeWaterfallDialog();
 }
Example #22
0
        public GreetingDialog(string dialogId, BotStateService _botStateService) : base(dialogId)
        {
            botStateService = _botStateService ?? throw new ArgumentNullException(nameof(botStateService));

            InitializeWaterfallDialog();
        }
 public FundBasicsAttributeDialog(string dialogId, BotStateService botService, RecognitionServices luisService) : base(dialogId, botService, luisService)
 {
     InitializeDialog();
 }
Example #24
0
 public GreetingBot(BotStateService botStateService)
 {
     _botStateService = botStateService;
 }
Example #25
0
 // T dialog - we need to instanciate it in Startup.cs (method ConfigureDialogs)
 public DialogBot(BotStateService _botStateService, T _dialog, ILogger <DialogBot <T> > _logger)
 {
     botStateService = _botStateService ?? throw new ArgumentNullException(nameof(_botStateService));
     dialog          = _dialog ?? throw new ArgumentNullException(nameof(_dialog));
     logger          = _logger ?? throw new ArgumentNullException(nameof(_logger));
 }
Example #26
0
 public GreetingBot(BotStateService botStateService)
 {
     _botStateService = botStateService ?? throw new System.ArgumentNullException(nameof(botStateService));
 }
Example #27
0
        public MainDialog(BotStateService botStateService) : base(nameof(MainDialog))
        {
            _botStateService = botStateService ?? throw new ArgumentNullException(nameof(botStateService));

            InitialiseWaterfallDialog();
        }
 public DialogBot(BotStateService botStateService, T dialog, ILogger <DialogBot <T> > logger)
 {
     _botStateService = botStateService;
     _dialog          = dialog;
     _logger          = logger;
 }
        public SecondDialog(string dialogId, BotStateService botStateService) : base(dialogId)
        {
            _botStateService = botStateService ?? throw new ArgumentNullException(nameof(botStateService));

            InitializeWaterfallDialog();
        }
Example #30
0
 public FundHoldingsDialog(string dialogId, BotStateService botService, RecognitionServices luisService) : base(dialogId, botService, luisService)
 {
     InitializeDialog();
 }