コード例 #1
0
 public ServerSingletonConnectionReader(Microsoft.ServiceBus.Channels.ServerSingletonPreambleConnectionReader preambleReader, Microsoft.ServiceBus.Channels.IConnection upgradedConnection, Microsoft.ServiceBus.Channels.ConnectionDemuxer connectionDemuxer) : base(upgradedConnection, preambleReader.BufferOffset, preambleReader.BufferSize, preambleReader.Security, preambleReader.TransportSettings, preambleReader.Via)
 {
     this.decoder           = preambleReader.Decoder;
     this.contentType       = this.decoder.ContentType;
     this.connectionDemuxer = connectionDemuxer;
     this.rawConnection     = preambleReader.RawConnection;
 }
 public ServerSingletonPreambleConnectionReader(Microsoft.ServiceBus.Channels.IConnection connection, Action connectionDequeuedCallback, long streamPosition, int offset, int size, Microsoft.ServiceBus.Channels.TransportSettingsCallback transportSettingsCallback, Microsoft.ServiceBus.Channels.ConnectionClosedCallback closedCallback, Microsoft.ServiceBus.Channels.ServerSingletonPreambleCallback callback) : base(connection, closedCallback)
 {
     this.decoder  = new Microsoft.ServiceBus.Channels.ServerSingletonDecoder(streamPosition, base.MaxViaSize, base.MaxContentTypeSize);
     this.offset   = offset;
     this.size     = size;
     this.callback = callback;
     this.transportSettingsCallback  = transportSettingsCallback;
     this.rawConnection              = connection;
     base.ConnectionDequeuedCallback = connectionDequeuedCallback;
 }