匯出 (0) 列印
全部展開

AddFailureNotificationCallback 方法

為指示用戶端遺漏一或多個快取通知的通知新增失敗通知回呼。Windows Azure Shared Caching 不支援。

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

public DataCacheNotificationDescriptor AddFailureNotificationCallback(
	DataCacheFailureNotificationCallback failureCallback
)

參數

failureCallback
型別:Microsoft.ApplicationServer.Caching..::..DataCacheFailureNotificationCallback
當失敗通知發生時要叫用之方法的名稱。

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

附註附註

In order for your application to use notifications, you need to enable them on a named cache. For Windows Server AppFabric 快取, use the NotificationsEnabled parameter with the New-Cache or Set-CacheConfig Windows PowerShell commands. For Windows Azure Caching on roles, enable notifications in the cache settings.

社群新增項目

新增
顯示:
© 2014 Microsoft