导出 (0) 打印
全部展开
展开 最小化

DataCacheFailureNotificationCallback 委托

注:本页面内容可能不完全适用中国大陆地区运营的 Windows Azure服务。如要了解不同地区 Windows Azure 服务的差异, 请参考本网站.

指定当缓存客户端丢失缓存通知时由故障通知调用的方法所需的参数。Windows Azure Shared Caching 中不支持。

命名空间:  Microsoft.ApplicationServer.Caching
程序集:  Microsoft.ApplicationServer.Caching.Client(在 Microsoft.ApplicationServer.Caching.Client.dll 中)

声明
Public Delegate Sub DataCacheFailureNotificationCallback ( _
	cacheName As String, _
	nd As DataCacheNotificationDescriptor _
)
用法
Dim instance As New DataCacheFailureNotificationCallback(AddressOf HandlerMethod)

参数

cacheName
类型:System..::..String
与丢失的通知关联的缓存的名称。
nd
类型:Microsoft.ApplicationServer.Caching..::..DataCacheNotificationDescriptor
与调用了 delegate 方法的故障通知关联的 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 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.

社区附加资源

添加
Microsoft 正在进行一项网上调查,以了解您对 MSDN 网站的意见。 如果您选择参加,我们将会在您离开 MSDN 网站时向您显示该网上调查。

是否要参加?
显示:
© 2014 Microsoft