Beispiel #1
0
 public WebSocketConnectionMiddleware(IDirectLineConnectionManager connectionManager, IConversationHistoryStore store, ILogger <WebSocketConnectionMiddleware> logger)
 {
     this._connectionManager = connectionManager;
     this._store             = store;
     this._logger            = logger;
 }
 public Test_IConversationHistoryStore(InMemoryConversationHistoryStore conversationHistory)
 {
     this._conversationHistory = conversationHistory;
 }
Beispiel #3
0
 public DirectLineHelper(IOptions <InDirectLineSettings> settings, IHttpClientFactory clientFactory, IConversationHistoryStore history)
 {
     this._settings   = settings?.Value ?? throw new Exception($"the {nameof(settings)} must not be null!");
     this._httpClient = clientFactory.CreateClient();
     this._history    = history;
 }