Enum EventType
Returns an EventType enum which specifies the type of event to be registered by the user. Event types are specified at the time of notification registration.
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
[Flags]
public enum EventType
Remarks
One or more event types can be specified.
Examples
To specify multiple events at the time of event registration, you can use the following code:
cache.MessagingService.RegisterCacheNotification(key, onCacheDataModifiedCallback, EventType.ItemAdded | EventType.ItemRemoved, EventDataFilter.DataWithMetadata);
Fields
Name | Description |
---|---|
ItemAdded | User receives a notification when an item is added in the cache. |
ItemRemoved | User receives a notification when an item is removed from the cache |
ItemUpdated | User receives a notification when an item is updated in the cache. |