Compartir a través de


IWMSCacheProxyCallback Object (C#)

The IWMSCacheProxyCallback object contains methods that enable a cache plug-in to respond to calls that the server makes through the IWMSCacheProxyIWMSCacheProxy Object (C#). This object is implemented by the server and called by a cache plug-in.

Note

   This object is available only on Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; and Windows Server 2008. Each method of this object must be called only once, even if an error code is returned after the initial call.

The IWMSCacheProxyCallback object exposes the following properties and methods.

Method

Description

OnAddCacheItem

Called by the cache plug-in to respond when the server calls IWMSCacheProxy.AddCacheItem.

OnQueryCache

Called by the cache plug-in to respond when the server calls IWMSCacheProxy.QueryCache.

OnQueryCacheMissPolicy

Called by the cache plug-in to respond when the server calls IWMSCacheProxy.QueryCacheMissPolicy.

OnRemoveAllCacheItems

Called by the cache plug-in to respond when the server calls IWMSCacheProxy.RemoveAllCacheItems.

OnRemoveCacheItem

Called by the cache plug-in to respond when the server calls IWMSCacheProxy.RemoveCacheItem.

See Also

Concepts

Custom Plug-in Objects (C#)