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