public ListenerSessionConnectionReader(IConnection connection,
     Action connectionDequeuedCallback, TransportType transportType, 
     long streamPosition, int offset, int size, 
     ConnectionClosedCallback closedCallback, ViaDecodedCallback viaDecodedCallback)
     : base(connection, connectionDequeuedCallback, transportType, offset, size, closedCallback, viaDecodedCallback)
 {
     this.decoder = new ServerSessionDecoder(streamPosition, ListenerConstants.MaxUriSize, ListenerConstants.SharedMaxContentTypeSize);
 }
 protected DupHandleConnectionReader(IConnection connection,
     Action connectionDequeuedCallback, TransportType transportType,
     int offset, int size, ConnectionClosedCallback closedCallback, ViaDecodedCallback viaDecodedCallback)
     : base(connection, closedCallback, ListenerConstants.MaxUriSize, ListenerConstants.SharedMaxContentTypeSize)
 {
     this.transportType = transportType;
     this.offset = offset;
     this.size = size;
     this.viaDecodedCallback = viaDecodedCallback;
     this.ConnectionDequeuedCallback = connectionDequeuedCallback;
 }
 protected DupHandleConnectionReader(IConnection connection,
                                     Action connectionDequeuedCallback, TransportType transportType,
                                     int offset, int size, ConnectionClosedCallback closedCallback, ViaDecodedCallback viaDecodedCallback)
     : base(connection, closedCallback, ListenerConstants.MaxUriSize, ListenerConstants.SharedMaxContentTypeSize)
 {
     this.transportType              = transportType;
     this.offset                     = offset;
     this.size                       = size;
     this.viaDecodedCallback         = viaDecodedCallback;
     this.ConnectionDequeuedCallback = connectionDequeuedCallback;
 }
 public ListenerConnectionDemuxer(IConnectionListener listener, 
     TransportType transportType,
     int maxAccepts, int initialMaxPendingConnections,
     TimeSpan channelInitializationTimeout,
     ConnectionHandleDuplicated connectionHandleDuplicated)
 {
     this.transportType = transportType;
     this.connectionReaders = new List<InitialServerConnectionReader>();
     this.connectionHandleDuplicated = connectionHandleDuplicated;
     this.acceptor = new ConnectionAcceptor(listener, maxAccepts, initialMaxPendingConnections, OnConnectionAvailable);
     this.channelInitializationTimeout = channelInitializationTimeout;
     this.onConnectionClosed = new ConnectionClosedCallback(OnConnectionClosed);
     this.onViaDecoded = new ViaDecodedCallback(OnViaDecoded);
 }
 public ListenerConnectionDemuxer(IConnectionListener listener,
                                  TransportType transportType,
                                  int maxAccepts, int initialMaxPendingConnections,
                                  TimeSpan channelInitializationTimeout,
                                  ConnectionHandleDuplicated connectionHandleDuplicated)
 {
     this.transportType              = transportType;
     this.connectionReaders          = new List <InitialServerConnectionReader>();
     this.connectionHandleDuplicated = connectionHandleDuplicated;
     this.acceptor = new ConnectionAcceptor(listener, maxAccepts, initialMaxPendingConnections, OnConnectionAvailable);
     this.channelInitializationTimeout = channelInitializationTimeout;
     this.onConnectionClosed           = new ConnectionClosedCallback(OnConnectionClosed);
     this.onViaDecoded = new ViaDecodedCallback(OnViaDecoded);
 }
 public ListenerSingletonConnectionReader(IConnection connection,
                                          Action connectionDequeuedCallback, TransportType transportType,
                                          long streamPosition, int offset, int size,
                                          ConnectionClosedCallback closedCallback, ViaDecodedCallback viaDecodedCallback)
     : base(connection, connectionDequeuedCallback, transportType, offset, size, closedCallback, viaDecodedCallback)
 {
     this.decoder = new ServerSingletonDecoder(streamPosition, ListenerConstants.MaxUriSize, ListenerConstants.SharedMaxContentTypeSize);
 }