HostLifecycleService
(Infrastructure) Provides access to the host's lifecycle management services.
Event that gets raised when the host resumes the application.
Event that gets raised when the host suspends the application.
Adds a reference to the host lifecycle manager, causing it to be sending notifications.
Removes a reference to the host lifecycle manager, causing it to stop sending notifications
if the removed reference was the last one.