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