Example #1
0
 public SingletonInputConnectionStream(SingletonConnectionReader reader, IConnection connection, IDefaultCommunicationTimeouts defaultTimeouts) : base(connection, defaultTimeouts)
 {
     this.reader              = reader;
     this.decoder             = new SingletonMessageDecoder(reader.StreamPosition);
     this.chunkBytesRemaining = 0;
     this.chunkBuffer         = new byte[5];
 }
Example #2
0
 public SingletonInputConnectionStream(SingletonConnectionReader reader, IConnection connection,
                                       IDefaultCommunicationTimeouts defaultTimeouts)
     : base(connection, defaultTimeouts)
 {
     _reader              = reader;
     _decoder             = new SingletonMessageDecoder(reader.StreamPosition);
     _chunkBytesRemaining = 0;
     _chunkBuffer         = new byte[IntEncoder.MaxEncodedSize];
 }
Example #3
0
 public StreamedFramingRequestContext(SingletonConnectionReader parent, Message requestMessage) : base(requestMessage, parent.transportSettings.CloseTimeout, parent.transportSettings.SendTimeout)
 {
     this.parent     = parent;
     this.connection = parent.connection;
     this.settings   = parent.transportSettings;
 }
Example #4
0
 public ReceiveAsyncResult(SingletonConnectionReader parent, TimeSpan timeout, AsyncCallback callback, object state) : base(callback, state)
 {
     this.parent  = parent;
     this.timeout = timeout;
     ActionItem.Schedule(onReceiveScheduled, this);
 }
 public SingletonInputConnectionStream(SingletonConnectionReader reader, IConnection connection,
     IDefaultCommunicationTimeouts defaultTimeouts)
     : base(connection, defaultTimeouts)
 {
     _reader = reader;
     _decoder = new SingletonMessageDecoder(reader.StreamPosition);
     _chunkBytesRemaining = 0;
     _chunkBuffer = new byte[IntEncoder.MaxEncodedSize];
 }
 public StreamedFramingRequestContext(SingletonConnectionReader parent, Message requestMessage) : base(requestMessage, parent.transportSettings.CloseTimeout, parent.transportSettings.SendTimeout)
 {
     this.parent = parent;
     this.connection = parent.connection;
     this.settings = parent.transportSettings;
 }
 public ReadAsyncResult(SingletonConnectionReader.SingletonInputConnectionStream parent, byte[] buffer, int offset, int count, AsyncCallback callback, object state) : base(callback, state)
 {
     this.parent = parent;
     this.result = this.parent.Read(buffer, offset, count);
     base.Complete(true);
 }
 public SingletonInputConnectionStream(SingletonConnectionReader reader, IConnection connection, IDefaultCommunicationTimeouts defaultTimeouts) : base(connection, defaultTimeouts)
 {
     this.reader = reader;
     this.decoder = new SingletonMessageDecoder(reader.StreamPosition);
     this.chunkBytesRemaining = 0;
     this.chunkBuffer = new byte[5];
 }
 public ReceiveAsyncResult(SingletonConnectionReader parent, TimeSpan timeout, AsyncCallback callback, object state) : base(callback, state)
 {
     this.parent = parent;
     this.timeout = timeout;
     ActionItem.Schedule(onReceiveScheduled, this);
 }