[Supported in the .NET Framework 4.5.1 only]
Occurs when the worker process or application pool associated with this host has stopped listening for new requests and will eventually shut down.
Assembly: System.Web (in System.Web.dll)
When an application pool and its associated worker processes are being shut down by IIS, for example when an application pool has reached a scheduled recycle interval, IIS notifies the ASP.NET runtime that the application is shutting down and the worker process for the application pool stops listening for new requests. Applications that use long-running requests, for example SignalR applications, can listen for the event and gracefully shut down their long-running operations when IIS has initiated the shutdown of an application pool and its associated worker processes.
There are several design considerations that a developer must consider when implementing the event:
This API is supported in the .NET Framework 4.5.1, but not in version 4.5.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.