ProcessRequest Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Enables processing of HTTP Web requests by a custom HttpHandler that implements the IHttpHandler interface.

Namespace:  Microsoft.CommerceServer.Runtime
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Sub ProcessRequest ( _
    context As HttpContext _
)
'Usage
Dim instance As SiteCacheRefresh
Dim context As HttpContext

instance.ProcessRequest(context)
public void ProcessRequest(
    HttpContext context
)
public:
virtual void ProcessRequest(
    HttpContext^ context
) sealed
public final function ProcessRequest(
    context : HttpContext
)

Parameters

Implements

IHttpHandler..::.ProcessRequest(HttpContext)

Exceptions

Exception Condition
ArgumentNullException

The query string of the request does not contain the required "CacheToRefresh" parameter

CommerceCacheException

No cache exists with the name provided in the query string.

Remarks

IHttpHandler method which processes the requests. This handler accepts a querystring with the format "CacheToRefresh=cachename" where cachename is one of the following:

  • CatalogCache to refresh all catalog caches.

  • CommerceCaches to refresh all site caches configured in web.config.

  • SiteTermCache to refresh the site term cache.

  • ProfileCache to refresh all profiles and site terms.

  • ProfileCache.keyvalue.profiletype to refresh the single profile instance of type profiletype with primary key value keyvalue.

  • AllMarketingCaches to refresh all site caches configured in web.config that are of type "Discounts" or "Advertising".

  • AllCaches to refresh all caches.

  • The name of a specific site cache configured in web.config.

Permissions

See Also

Reference

SiteCacheRefresh Class

SiteCacheRefresh Members

Microsoft.CommerceServer.Runtime Namespace