public HttpConnectionLoop(
     Stream tcpConnection,
     IHttpKeepAliveService keepAliveService,
     IHttpSessionFactory httpSessionFactory)
 {
     _connection = tcpConnection
                   ?? throw new ArgumentNullException(nameof(tcpConnection));
     _keepAliveService = keepAliveService
                         ?? throw new ArgumentNullException(nameof(keepAliveService));
     _httpSessionFactory = httpSessionFactory
                           ?? throw new ArgumentNullException(nameof(httpSessionFactory));
 }
 public MemoryHttpSessionRepository(IHttpSessionFactory httpSessionFactory)
 {
     _httpSessionFactory = httpSessionFactory;
     _repository         = new ConcurrentDictionary <string, IHttpSession>();
 }
 public MemoryHttpSessionRepository(IHttpSessionFactory httpSessionFactory)
 {
     _httpSessionFactory = httpSessionFactory;
     _repository = new ConcurrentDictionary<string, IHttpSession>();
 }