Class CacheEventDescriptor
Instance of this class holds the link to the registered delegate Keep it safe and use it to unregister the registered delegate when required. The bool IsRegistered returns false when the discriptor has been consumed to unregister the delegate. Then this instance can then be disposed of. Upon re-registering for the interested event, a new discriptor will be created.
Inheritance
System.Object
CacheEventDescriptor
Namespace:
Assembly: Alachisoft.NCache.Web.dll
Syntax
public sealed class CacheEventDescriptor
Properties
CacheDataNotificationCallback
Declaration
public CacheDataNotificationCallback CacheDataNotificationCallback { get; }
Property Value
Type | Description |
---|---|
CacheDataNotificationCallback |
CacheName
Name of the cache registered against
Declaration
public string CacheName { get; }
Property Value
Type | Description |
---|---|
System.String |
DataFilter
Declaration
public EventDataFilter DataFilter { get; }
Property Value
Type | Description |
---|---|
Alachisoft.NCache.Runtime.Events.EventDataFilter |
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 |
RegisteredAgainst
Event Types registered against. Can be ORed to check registeration types
Declaration
public EventType RegisteredAgainst { get; }
Property Value
Type | Description |
---|---|
Alachisoft.NCache.Runtime.Events.EventType |