示例#1
0
 public RawByteClientStream(IRawByteClient client)
 {
     this.disposed = false;
     this.hasDataEvent = new ManualResetEventSlim();
     this.client = client;
     this.buffer = new ResizableCyclicBuffer(4096);
     this.client.Received += DataReceived;
 }
示例#2
0
 public RawByteClientStream(IRawByteClient client)
 {
     this.disposed     = false;
     this.hasDataEvent = new ManualResetEventSlim();
     this.client       = client;
     this.buffer       = new ResizableCyclicBuffer(4096);
     this.client.Received.Subscribe(DataReceived);
 }