Skip to content

Commit

Permalink
Add missing delegating/override method in TlsStream (#106362)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzikm authored Aug 14, 2024
1 parent 4ece5f7 commit 61aa67d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libraries/Common/src/System/Net/TlsStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ public override Task WriteAsync(byte[] buffer, int offset, int count, Cancellati
return _sslStream.WriteAsync(buffer, offset, count, cancellationToken);
}

public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default(CancellationToken))
{
return _sslStream.WriteAsync(buffer, cancellationToken);
}

public override int Read(byte[] buffer, int offset, int size)
{
return _sslStream.Read(buffer, offset, size);
Expand Down

0 comments on commit 61aa67d

Please sign in to comment.