From 7f6d29fdf4b939325d16aebe64b4feffd6fbc2de Mon Sep 17 00:00:00 2001 From: Kerry Jiang Date: Mon, 13 May 2024 15:41:47 -0700 Subject: [PATCH] Update quic-overview.md (#40858) OpenStreamAsync => OpenOutboundStreamAsync AcceptStreamAsync => AcceptInboundStreamAsync --- docs/fundamentals/networking/quic/quic-overview.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/fundamentals/networking/quic/quic-overview.md b/docs/fundamentals/networking/quic/quic-overview.md index 7d0415301fd..11db749c431 100644 --- a/docs/fundamentals/networking/quic/quic-overview.md +++ b/docs/fundamentals/networking/quic/quic-overview.md @@ -314,7 +314,7 @@ The sample usage of `QuicStream` in client scenario: ```csharp // Consider connection from the connection example, open a bidirectional stream. -await using var stream = await connection.OpenStreamAsync(QuicStreamType.Bidirectional, cancellationToken); +await using var stream = await connection.OpenOutboundStreamAsync(QuicStreamType.Bidirectional, cancellationToken); // Send some data. await stream.WriteAsync(data, cancellationToken); @@ -338,7 +338,7 @@ And the sample usage of `QuicStream` in server scenario: ```csharp // Consider connection from the connection example, accept a stream. -await using var stream = await connection.AcceptStreamAsync(cancellationToken); +await using var stream = await connection.AcceptInboundStreamAsync(cancellationToken); if (stream.Type != QuicStreamType.Bidirectional) {