C#C
C#3y ago
bokoganga

❔ Logging Sudden Application Shutdown

Hey guys,
I would like to ask if there is a possibility to log the event of an unexpected application shutdown? I'm aware of IHostApplicationLifetime which exposes OnStopping and OnStopped but they only trigger when the app is shutting down gracefully.
Was this page helpful?