Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The event handler for BackgroundService in ASP.NET Core and SignalR is the OnStopped method. It is called when the service is gracefully stopped or when an unhandled exception occurs. This method provides an opportunity to clean up resources or perform any final actions before the service is terminated.