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

DataCacheFailureNotificationCallback 委托

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

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

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

JScript 支持使用委托,但不支持声明新委托。

参数

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.

社区附加资源

添加
显示:
© 2014 Microsoft