SALES: 1-800-867-1380

AddFailureNotificationCallback Method

Adds a failure notification callback, for notifications indicating that a client has missed one or more cache notifications. Applies only to the server versions of AppFabric.

Namespace:  Microsoft.ApplicationServer.Caching
Assembly:  Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)

public DataCacheNotificationDescriptor AddFailureNotificationCallback(
	DataCacheFailureNotificationCallback failureCallback
)

Parameters

failureCallback
Type: Microsoft.ApplicationServer.Caching..::..DataCacheFailureNotificationCallback
The name of the method that you want to invoke when the failure notification occurs.

Return Value

Type: Microsoft.ApplicationServer.Caching..::..DataCacheNotificationDescriptor
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 <maml:externalLink><maml:linkText>Add a Failure Notification Callback</maml:linkText><maml:linkUri>http://go.microsoft.com/fwlink/?LinkId=214982</maml:linkUri></maml:externalLink>. For more information about cache notifications, see <maml:externalLink><maml:linkText>Cache Notifications</maml:linkText><maml:linkUri>http://go.microsoft.com/fwlink/?LinkID=193436</maml:linkUri></maml:externalLink>.

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 <maml:externalLink><maml:linkText>Using Windows PowerShell to Manage Windows Server AppFabric Caching Features</maml:linkText><maml:linkUri>http://go.microsoft.com/fwlink/?LinkID=192796</maml:linkUri></maml:externalLink>.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft