Eksportér (0) Udskriv
Udvid alt
Expand Minimize
EN
Dette indhold er ikke tilgængeligt på dit sprog, men her er den engelske version.
Dette emne er endnu ikke blevet bedømt - Bedøm dette emne

DataCacheFailureNotificationCallback Delegate

Specifies the parameters required for a method to be invoked by a failure notification when the cache client misses cache notifications. Not supported in Windows Azure Shared Caching.

Namespace:  Microsoft.ApplicationServer.Caching
Assembly:  Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)
public delegate void DataCacheFailureNotificationCallback(
	string cacheName,
	DataCacheNotificationDescriptor nd
)

Parameters

cacheName
Type: System..::..String
The name of the cache associated with the missing notifications.
nd
Type: Microsoft.ApplicationServer.Caching..::..DataCacheNotificationDescriptor
The DataCacheNotificationDescriptor object associated with the failure notification that invoked the delegate method.

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(DataCacheFailureNotificationCallback) method.

NoteNote

In order for your application to use notifications, you need to enable them on a named cache. In Microsoft AppFabric 1.1 for Windows Server Caching, use the notificationsEnabled parameter with the New-Cache or Set-CacheConfig Windows PowerShell commands. In Windows Azure Caching, enable notifications in the Caching configuration of the role that hosts the cache.

Syntes du, dette var nyttigt?
(1500 tegn tilbage)
Tak for din feedback

Fællesskabsindhold

Tilføj
Vis:
© 2014 Microsoft. Alle rettigheder forbeholdes.