public BotConnector(DirectlineConfig directlineConfig, string callSid) { _directlineConfig = directlineConfig; _directLineClient = new DirectLineClient(_directlineConfig.DirectlineSecret); var conversation = _directLineClient.Conversations.StartConversation(); _conversationId = conversation.ConversationId; _streamUrl = conversation.StreamUrl; _callSid = callSid; }
public VoiceController(IHostingEnvironment hostingEnvironment, IOptions <TwilioAppConfig> twilioOptions, IOptions <DirectlineConfig> directlineOptions, TextToSpeech textToSpeech, NamesService namesService) { _namesService = namesService; _textToSpeech = textToSpeech; _twilioAppConfig = twilioOptions.Value; _directlineConfig = directlineOptions.Value; _hostingEnvironment = hostingEnvironment; TwilioClient.Init(_twilioAppConfig.TwilioSid, _twilioAppConfig.TwilioToken); Init(); }
public NamesService(HttpClient httpClient, IOptions <DirectlineConfig> directlineOptions) { _httpClient = httpClient; _directlineConfig = directlineOptions.Value; _httpClient.BaseAddress = _directlineConfig.ProxiCallCrmHostname; }