Ask Your Question
3

What is the eventhandler for BackgroundService in ASP.NET Core and SignalR?

asked 2023-05-08 09:22:09 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-05-08 09:32:02 +0000

ladyg gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-08 09:22:09 +0000

Seen: 14 times

Last updated: May 08 '23