예제 #1
0
 internal void SetContentType(string contentType)
 {
     if (contentType == FramingUpgradeString.SslOrTls)
     {
         _inputLengthDecider = new TlsInputLengthDecider();
     }
     else if (contentType == FramingUpgradeString.Negotiate)
     {
         _inputLengthDecider = new NegotiateInputLengthDecider();
     }
     else
     {
         _inputLengthDecider = NoopInputLengthDecider.Instance;
     }
 }
예제 #2
0
 public DuplexPipeStream(PipeReader input, PipeWriter output)
 {
     _input              = input;
     _output             = output;
     _inputLengthDecider = NoopInputLengthDecider.Instance;
 }