示例#1
0
 public ClientHelloAlpnAdderStream(CustomBufferedStream stream, IBufferPool bufferPool)
 {
     this.stream = stream;
 }
示例#2
0
 public ValueTask <string?> ReadLineAsync(CancellationToken cancellationToken = default)
 {
     return(CustomBufferedStream.ReadLineInternalAsync(this, bufferPool, cancellationToken));
 }
示例#3
0
 /// <summary>
 /// Read a line from the byte stream
 /// </summary>
 /// <param name="cancellationToken"></param>
 /// <returns></returns>
 Task <string> ICustomStreamReader.ReadLineAsync(CancellationToken cancellationToken)
 {
     return(CustomBufferedStream.ReadLineInternalAsync(this, bufferPool, cancellationToken));
 }
 public ServerHelloAlpnAdderStream(CustomBufferedStream stream, IBufferPool bufferPool)
 {
     this.bufferPool = bufferPool;
     this.stream     = stream;
 }