Class CacheEventDescriptor
Instance of this class holds the link to the registered delegate. Use it to unregister the registered delegate when required. The bool IsRegistered returns false when the descriptor has been consumed to unregister the delegate. This instance can then be disposed off. Upon re-registering for the interested event, a new descriptor will be created.
Inheritance
Assembly: Alachisoft.NCache.Client.dll
Syntax
public sealed class CacheEventDescriptor
Properties
CacheDataNotificationCallback
Delegate that triggers when any data changes in the cache.
Declaration
public CacheDataNotificationCallback CacheDataNotificationCallback { get; }
Property Value
Type | Description |
---|---|
CacheDataNotificationCallback | A delegate that triggers when any data changes in the cache. |
CacheName
Name against which the cache is registered.
Declaration
public string CacheName { get; }
Property Value
Type | Description |
---|---|
System.String | Name of the cache. |
DataFilter
Gets data filter.
Declaration
public EventDataFilter DataFilter { get; }
Property Value
Type | Description |
---|---|
EventDataFilter | This property specifies how much data should be retrieved from the cache when a notification is raised. |
IsRegistered
Returns true if the linked event delegate is registered, returns false when the descriptor has been consumed. This property is ThreadSafe.
Declaration
public bool IsRegistered { get; }
Property Value
Type | Description |
---|---|
System.Boolean | Specifies a boolean value, either true or false. |
RegisteredAgainst
The property against which the event types are registered.
Declaration
public EventType RegisteredAgainst { get; set; }
Property Value
Type | Description |
---|---|
EventType | This property specifies the type against which the event is raised. |