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(); }
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(); }
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(); }
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(); }
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(); }
//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)); }
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(); }
public ReintentarOtpDialog(string dialogId, BotStateService botStateService, int minutosNumeroValido) : base(dialogId) { _botStateService = botStateService; _minutosNumeroValido = minutosNumeroValido; InicializarCascada(); }
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(); }
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(); }
public MainDialog(BotStateService botStateService, IConfiguration configuration, IFileUtility fileUtility) { _botStateService = botStateService ?? throw new ArgumentNullException(nameof(botStateService)); _configuration = configuration; _fileUtility = fileUtility; InitializeWaterfallDialog(); }
public FirstDialog(string dialogId, BotStateService botStateService) : base(dialogId) { _botStateService = botStateService ?? throw new ArgumentNullException(nameof(botStateService)); if (dialogId == $"{ nameof(MainDialog)}.first") { InitializeWaterfallDialog1(); } else { InitializeWaterfallDialog2(); } }
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 } }
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); }
public MainDialog(BotStateService botService, RecognitionServices luisService) : base(nameof(MainDialog), botService, luisService) { _botService = botService; _luisService = luisService; InitializeDialog(); }
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)); }
public UserRegistrationDialog(string dialogId, BotStateService botStateService) : base(dialogId) { _botStateService = botStateService ?? throw new System.ArgumentNullException(nameof(botStateService)); InitializeWaterfallDialog(); }
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(); }
public GreetingBot(BotStateService botStateService) { _botStateService = botStateService; }
// 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)); }
public GreetingBot(BotStateService botStateService) { _botStateService = botStateService ?? throw new System.ArgumentNullException(nameof(botStateService)); }
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(); }
public FundHoldingsDialog(string dialogId, BotStateService botService, RecognitionServices luisService) : base(dialogId, botService, luisService) { InitializeDialog(); }