About: “.NET client, Server-to-client streaming”. In the first snip, the clause await shows a syntax error: “'IAsyncEnumerable
Is this an error in the article, or am I doing something wrong?
I appreciate your answer.
âš Do not edit this section. It is required for docs.microsoft.com âžź GitHub issue linking.
Probably missing an include. See https://github.com/dotnet/AspNetCore.Docs/tree/live/aspnetcore/signalr/streaming/samples/3.0
Hi Rick - Thanks for your attention
The reference you mention to me I had already seen. It does not match with my question, which refers to a non-web client.
I published a test project for more information, you can check in https://github.com/harveytriana/StreamingTest, look in the Program class of ConsoleClient the comment: // QUESTION.
I still believe that it is an error in the documentation, correct me if anything.
NOTE. The same happens with .NET Core 3.1
What line in https://github.com/dotnet/AspNetCore.Docs/tree/live/aspnetcore/signalr/streaming/samples/3.0 is wrong?
https://docs.microsoft.com/aspnet/core/signalr/streaming?view=aspnetcore-3.1&source=docs#server-to-client-streaming-1
The line:
var stream = await hubConnection.StreamAsync<int>(
"Counter", 10, 500, cancellationTokenSource.Token);
should not have an await.
@BrennanConroy thanks, I'll get this fixed.
Thanks