匯出 (0) 列印
全部展開
Expand Minimize

DataCacheFailureNotificationCallback 委派

指定當快取用戶端遺失快取通知時,失敗通知叫用的方法所需的參數。並未在 Windows Azure Shared Caching 中支援。

命名空間:  Microsoft.ApplicationServer.Caching
組件:  Microsoft.ApplicationServer.Caching.Client (在 Microsoft.ApplicationServer.Caching.Client.dll 中)

public delegate void DataCacheFailureNotificationCallback(
	string cacheName,
	DataCacheNotificationDescriptor nd
)

參數

cacheName
型別:System..::..String
與遺失通知相關聯的快取名稱。
nd
型別:Microsoft.ApplicationServer.Caching..::..DataCacheNotificationDescriptor
與失敗通知相關聯的 DataCacheNotificationDescriptor 物件已叫用委任方法。

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.

附註附註

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 快取, 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.

社群新增項目

新增
顯示:
© 2014 Microsoft