OpenStreamAsync => OpenOutboundStreamAsync
AcceptStreamAsync => AcceptInboundStreamAsync
This commit is contained in:
Kerry Jiang 2024-05-13 15:41:47 -07:00 коммит произвёл GitHub
Родитель 44857895ad
Коммит 7f6d29fdf4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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)
{