52 references to InnerStream
System.Net.Security (52)
System\Net\Security\NegotiateStream.cs (26)
261public override bool CanRead => IsAuthenticated && InnerStream.CanRead; 263public override bool CanTimeout => InnerStream.CanTimeout; 265public override bool CanWrite => IsAuthenticated && InnerStream.CanWrite; 269get => InnerStream.ReadTimeout; 270set => InnerStream.ReadTimeout = value; 275get => InnerStream.WriteTimeout; 276set => InnerStream.WriteTimeout = value; 279public override long Length => InnerStream.Length; 283get => InnerStream.Position; 288InnerStream.SetLength(value); 294InnerStream.Flush(); 297InnerStream.FlushAsync(cancellationToken); 306return InnerStream.Read(buffer, offset, count); 321return InnerStream.ReadAsync(buffer, offset, count, cancellationToken); 332return InnerStream.ReadAsync(buffer, cancellationToken); 366int readBytes = await ReadAllAsync(InnerStream, _readHeader, allowZeroRead: true, cancellationToken).ConfigureAwait(false); 391readBytes = await ReadAllAsync(InnerStream, new Memory<byte>(_readBuffer, 0, readBytes), allowZeroRead: false, cancellationToken).ConfigureAwait(false); 470InnerStream.Write(buffer, offset, count); 485return InnerStream.WriteAsync(buffer, offset, count, cancellationToken); 497return InnerStream.WriteAsync(buffer, cancellationToken); 545await TIOAdapter.WriteAsync(InnerStream, _writeHeader, cancellationToken).ConfigureAwait(false); 547await TIOAdapter.WriteAsync(InnerStream, _writeBuffer.WrittenMemory, cancellationToken).ConfigureAwait(false); 805await _framer!.WriteMessageAsync<TIOAdapter>(InnerStream, message, cancellationToken).ConfigureAwait(false); 852await _framer!.WriteMessageAsync<TIOAdapter>(InnerStream, message, cancellationToken).ConfigureAwait(false); 864byte[]? message = await _framer.ReadMessageAsync<TIOAdapter>(InnerStream, cancellationToken).ConfigureAwait(false); 924await _framer.WriteMessageAsync<TIOAdapter>(InnerStream, message, cancellationToken).ConfigureAwait(false);
System\Net\Security\SslStream.cs (13)
455return InnerStream.WriteAsync(new ReadOnlyMemory<byte>(token.Payload, 0, token.Size), default).AsTask(); 656public override bool CanRead => IsAuthenticated && InnerStream.CanRead; 658public override bool CanTimeout => InnerStream.CanTimeout; 660public override bool CanWrite => IsAuthenticated && InnerStream.CanWrite && !_shutdown; 664get => InnerStream.ReadTimeout; 665set => InnerStream.ReadTimeout = value; 670get => InnerStream.WriteTimeout; 671set => InnerStream.WriteTimeout = value; 674public override long Length => InnerStream.Length; 678get => InnerStream.Position; 682public override void SetLength(long value) => InnerStream.SetLength(value); 686public override void Flush() => InnerStream.Flush(); 688public override Task FlushAsync(CancellationToken cancellationToken) => InnerStream.FlushAsync(cancellationToken);
System\Net\Security\SslStream.IO.cs (13)
230await TIOAdapter.WriteAsync(InnerStream, token.AsMemory(), cancellationToken).ConfigureAwait(false); 231await TIOAdapter.FlushAsync(InnerStream, cancellationToken).ConfigureAwait(false); 254await TIOAdapter.WriteAsync(InnerStream, token.AsMemory(), cancellationToken).ConfigureAwait(false); 255await TIOAdapter.FlushAsync(InnerStream, cancellationToken).ConfigureAwait(false); 306await TIOAdapter.WriteAsync(InnerStream, new ReadOnlyMemory<byte>(token.Payload!, 0, token.Size), cancellationToken).ConfigureAwait(false); 307await TIOAdapter.FlushAsync(InnerStream, cancellationToken).ConfigureAwait(false); 350await TIOAdapter.WriteAsync(InnerStream, payload, cancellationToken).ConfigureAwait(false); 351await TIOAdapter.FlushAsync(InnerStream, cancellationToken).ConfigureAwait(false); 538InnerStream.Write(alert); 658ValueTask t = TIOAdapter.WriteAsync(InnerStream, token.AsMemory(), cancellationToken); 686await TIOAdapter.WriteAsync(InnerStream, token.AsMemory(), cancellationToken).ConfigureAwait(false); 740await TIOAdapter.ReadAsync(InnerStream, Memory<byte>.Empty, cancellationToken).ConfigureAwait(false); 755int bytesRead = await TIOAdapter.ReadAsync(InnerStream, _buffer.AvailableMemory, cancellationToken).ConfigureAwait(false);