Beispiel #1
0
 public ClientHelloAlpnAdderStream(CustomBufferedStream stream, IBufferPool bufferPool)
 {
     this.stream = stream;
 }
Beispiel #2
0
 public ValueTask <string?> ReadLineAsync(CancellationToken cancellationToken = default)
 {
     return(CustomBufferedStream.ReadLineInternalAsync(this, bufferPool, cancellationToken));
 }
Beispiel #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;
 }