-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Description
Description
The following is community feedback provided by contributor MA-Maddin who kindly provided a fix. This issue is just created to track for the PR that has been reviewed:
I was going through the "Host ASP.NET Core SignalR in background services" tutorial, but then wondered why SendTimeToClients() isn't called anywhere.
I first thought that this method is used by the server to send the current time to clients, but that's actually done by _clockHubContext.Clients.All.ShowTime(DateTime.Now);
Furthermore, it makes no sense that a(ny) client sends a time to all clients.
Page URL
https://learn.microsoft.com/en-us/aspnet/core/signalr/background-services?view=aspnetcore-9.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/signalr/background-services.md
Document ID
6b203f18-adfa-3a18-183d-b124325064c3
Platform Id
143698b3-4d0d-78bf-a8c0-96fcfcb503a1
Article author
Metadata
- ID: 1bbb2d1c-4dfe-3faf-d4b0-65ae1146961e
- PlatformId: 143698b3-4d0d-78bf-a8c0-96fcfcb503a1
- Service: aspnet-core
- Sub-service: aspnetcore-signalr