예제 #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;
 }