Compiling the stream sample gives the following error:
Severity Code Description Project File Line Suppression State
Error CS0103 The name 'channel' does not exist in the current context SignalRStreaming \Hubs\StreamHub.cs 32 Active
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@BrennanConroy Have you seen this error. Any advice?
Whoops, looks like a copy-paste error when editing the sample.
https://github.com/aspnet/Docs/blob/30a88bd0105f57ec538d140860901007d5ada7a2/aspnetcore/signalr/streaming/sample/Hubs/StreamHub.cs#L32
needs to change to writer.TryComplete();
https://github.com/aspnet/Docs/blob/30a88bd0105f57ec538d140860901007d5ada7a2/aspnetcore/signalr/streaming/sample/Hubs/StreamHub.cs#L28
needs to change to await writer.WriteAsync(i);
@BrennanConroy Ok to close this?
Yep :+1:
Most helpful comment
Whoops, looks like a copy-paste error when editing the sample.
https://github.com/aspnet/Docs/blob/30a88bd0105f57ec538d140860901007d5ada7a2/aspnetcore/signalr/streaming/sample/Hubs/StreamHub.cs#L32
needs to change to
writer.TryComplete();https://github.com/aspnet/Docs/blob/30a88bd0105f57ec538d140860901007d5ada7a2/aspnetcore/signalr/streaming/sample/Hubs/StreamHub.cs#L28
needs to change to
await writer.WriteAsync(i);