examples/razorwire-mvc/Services/UserPresenceBackgroundService.cs

UserPresenceBackgroundService

Type

UserPresenceBackgroundService

A background service that periodically pulses the user presence service and publishes updates to connected clients.
Method

RunAsync(CancellationToken)

Periodically pulses user presence, removes departed users from the reactive stream, and publishes updates to connected clients.