Exportar (0) Imprimir
Expandir todo
Expandir Minimizar

Delegado DataCacheFailureNotificationCallback

Especifica los parámetros necesarios para que una notificación de error invoque un método cuando el cliente de caché omita notificaciones de caché. No se admite en Shared Caching de Windows Azure.

Espacio de nombres:  Microsoft.ApplicationServer.Caching
Ensamblado:  Microsoft.ApplicationServer.Caching.Client (en Microsoft.ApplicationServer.Caching.Client.dll)

public delegate void DataCacheFailureNotificationCallback(
	String^ cacheName, 
	DataCacheNotificationDescriptor^ nd
)

Parámetros

cacheName
Tipo: System..::..String
Nombre de la caché asociada con las notificaciones ausentes.
nd
Tipo: Microsoft.ApplicationServer.Caching..::..DataCacheNotificationDescriptor
Objeto DataCacheNotificationDescriptor asociado con la notificación de error que invocó el método delegado.

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.

NotaNota

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

Adiciones de comunidad

AGREGAR
Mostrar:
© 2014 Microsoft