PFN_WEBHOST_LISTENER_APPLICATION_POOL_DELETED Function
Notifies the listener adapter that the application pool has been deleted from its view.
Syntax
typedef VOID(* PFN_WEBHOST_LISTENER_APPLICATION_POOL_DELETED)(
IN VOID* pContext,
IN LPCWSTR AppPoolId
);
Parameters
pContext
[IN] A pointer to a VOID
context that the listener adapter passed to WebhostRegisterProtocol.
AppPoolId
[IN] A pointer to a string that contains the application pool that has been deleted from the listener adapter's view.
Return Value
VOID
.
Remarks
The application pool can be deleted from the listener adapter's view if the Windows Process Activation Service (WAS) no longer has any applications that use this application pool, or the WAS is not tracking any more listener channels for this pool. The WAS tracks listener channels that are connected to a worker process and listener channels that it has not notified the listener adapter to start (for example, when the application pool is disabled).
All applications in the pool should be either deleted or notified to move to another application pool before the WAS stops tracking all listener channels for the application pool. As each application exits or moves to another application pool, the listener adapter notifies the WAS to stop tracking their listener channels. Once the WAS has no listener channels to track for the application pool, this notification is called.
The WAS calls this function asynchronously and does not wait for the completion of the notification.
Requirements
Type | Description |
---|---|
Client | - IIS 7.0 on Windows Vista - IIS 7.5 on Windows 7 - IIS 8.0 on Windows 8 - IIS 10.0 on Windows 10 |
Server | - IIS 7.0 on Windows Server 2008 - IIS 7.5 on Windows Server 2008 R2 - IIS 8.0 on Windows Server 2012 - IIS 8.5 on Windows Server 2012 R2 - IIS 10.0 on Windows Server 2016 Technical Preview |
Product | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 - IIS Express 7.5, IIS Express 8.0, IIS Express 10.0 |
Header | Listeneradapter.h |