AddFailureNotificationCallback Method

DataCache.AddFailureNotificationCallback Method

Adds a failure notification callback, for notifications indicating that a client has missed one or more cache notifications.

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

'Usage
Dim instance As DataCache
Dim failureCallback As DataCacheFailureNotificationCallback
Dim returnValue As DataCacheNotificationDescriptor

returnValue = instance.AddFailureNotificationCallback(failureCallback)

public abstract DataCacheNotificationDescriptor AddFailureNotificationCallback (
	DataCacheFailureNotificationCallback failureCallback
)
public abstract DataCacheNotificationDescriptor AddFailureNotificationCallback (
	DataCacheFailureNotificationCallback failureCallback
)
public abstract function AddFailureNotificationCallback (
	failureCallback : DataCacheFailureNotificationCallback
) : DataCacheNotificationDescriptor

Parameters

failureCallback

The name of the method that you want to invoke when the failure notification occurs.

Return Value

A DataCacheNotificationDescriptor object used to identify the cache notification callback.

The failureCallback method you invoke with the failure notification must accept the same parameters as the DataCacheFailureNotificationCallback delegate.

For more information about using this method, see How to: Add a Failure Notification Callback. For more information about cache notifications, see Cache Notifications.

noteNote
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.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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
  https://msdn.microsoft.com/en-us/library/microsoft.applicationserver.caching.aspx 2011-08-26
Show:
© 2016 Microsoft