Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 3.04 KB

pfn-webhost-listener-application-pool-deleted-function.md

File metadata and controls

46 lines (35 loc) · 3.04 KB
title description ms.date ms.assetid
PFN_WEBHOST_LISTENER_APPLICATION_POOL_DELETED Function
Learn how the PFN_WEBHOST_LISTENER_APPLICATION_POOL_DELETED function notifies the listener adapter that the application pool has been deleted from its view.
10/07/2016
22e77a24-aaca-c593-c46f-cbbe073e1b4a

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 [!INCLUDEwinvista]
- IIS 7.5 on Windows 7
- IIS 8.0 on Windows 8
- IIS 10.0 on Windows 10
Server - IIS 7.0 on [!INCLUDEwinsrv2008]
- 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
Product - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
- [!INCLUDEiisexp75], [!INCLUDEiisexp80], [!INCLUDEiisexp100]
Header Listeneradapter.h

See Also

Listener Adapter Callback Functions