Ejemplo n.º 1
0
 public SNINetworkStream(Socket socket, bool ownsSocket) : base(socket, ownsSocket)
 {
     _writeAsyncSemaphore = new ConcurrentQueueSemaphore(1);
     _readAsyncSemaphore  = new ConcurrentQueueSemaphore(1);
 }
Ejemplo n.º 2
0
 public SNISslStream(Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback)
     : base(innerStream, leaveInnerStreamOpen, userCertificateValidationCallback)
 {
     _writeAsyncSemaphore = new ConcurrentQueueSemaphore(1);
     _readAsyncSemaphore  = new ConcurrentQueueSemaphore(1);
 }