Поділитися через


DataCacheFailureNotificationCallback Delegate

Specifies the parameters required for a method to be invoked by a failure notification when the cache client misses cache notifications.

Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in microsoft.applicationserver.caching.client.dll)

Usage

'Usage
Dim instance As New DataCacheFailureNotificationCallback(AddressOf HandlerMethod)

Syntax

'Declaration
Public Delegate Sub DataCacheFailureNotificationCallback ( _
    cacheName As String, _
    nd As DataCacheNotificationDescriptor _
)
public delegate void DataCacheFailureNotificationCallback (
    string cacheName,
    DataCacheNotificationDescriptor nd
)
public delegate void DataCacheFailureNotificationCallback (
    String^ cacheName, 
    DataCacheNotificationDescriptor^ nd
)
/** @delegate */
public delegate void DataCacheFailureNotificationCallback (
    String cacheName, 
    DataCacheNotificationDescriptor nd
)

Parameters

  • cacheName
    The name of the cache associated with the missing notifications.

Remarks

Failure notifications are triggered when the cache client misses one or more notifications. Similar to adding callbacks for cache notifications, adding a failure notification callback involves two steps. First, create a method that will be invoked when a failure notification is triggered. The method you invoke with the failure notification must accept the same parameters as this delegate. Second, add the failure notification callback using the AddFailureNotificationCallback method.

Note

In order for your application to use notifications, you need to enable them on a named cache. Use the notificationsEnabled parameter with the New-Cache or Set-CacheConfig commands. For more information, see Cache Administration with PowerShell (Velocity).

Platforms

Development Platforms

Visual Studio 2010 and later, .NET Framework 4

Target Platforms

Windows 7; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista Service Pack 2

Change History

See Also

Reference

Microsoft.ApplicationServer.Caching Namespace

  ff425062(v=azure.10).md 2011-08-26