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);
 }
Exemple #2
0
 public ServerSingletonConnectionReader(ServerSingletonPreambleConnectionReader preambleReader,
                                        IConnection upgradedConnection, ConnectionDemuxer connectionDemuxer)
     : base(upgradedConnection, preambleReader.BufferOffset, preambleReader.BufferSize,
            preambleReader.Security, preambleReader.TransportSettings, preambleReader.Via)
 {
     decoder                = preambleReader.Decoder;
     contentType            = decoder.ContentType;
     this.connectionDemuxer = connectionDemuxer;
     rawConnection          = preambleReader.RawConnection;
     channelBindingToken    = preambleReader.ChannelBinding;
 }
Exemple #3
0
 public ServerSingletonPreambleConnectionReader(IConnection connection, Action connectionDequeuedCallback,
                                                long streamPosition, int offset, int size, TransportSettingsCallback transportSettingsCallback,
                                                ConnectionClosedCallback closedCallback, ServerSingletonPreambleCallback callback)
     : base(connection, closedCallback)
 {
     decoder       = new ServerSingletonDecoder(streamPosition, MaxViaSize, MaxContentTypeSize);
     this.offset   = offset;
     this.size     = size;
     this.callback = callback;
     this.transportSettingsCallback = transportSettingsCallback;
     rawConnection = connection;
     ConnectionDequeuedCallback = connectionDequeuedCallback;
 }