Skip to content

,System.Int32,System.Int32,-0)}

CacheNotify(CacheAction, T?, PooledBatch?, int, int, T?) constructor

Defined in

Type: CacheNotify Namespace: ReactiveList.Reactive.Core Assembly: ReactiveList.Reactive.dll

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

public CacheNotify(CacheAction Action, T? Item, PooledBatch<T>? Batch = null, int CurrentIndex = -1, int PreviousIndex = -1, T? Previous = default(T?))

View source (opens in a new tab)

Summary: Represents a notification describing a cache action and the associated item or batch of items.

Parameters

NameTypeDescription
ActionCacheActionGets the cache action that triggered the notification.
ItemT?Gets the item associated with the cache action, or default if the action applies to a batch.
Batch = nullPooledBatch?Gets an optional batch of items associated with the cache action.
CurrentIndex = -1int (opens in a new tab)Gets the current index of the item in the collection, or -1 if not applicable.
PreviousIndex = -1int (opens in a new tab)Gets the previous index of the item in the collection, or -1 if not applicable.
Previous = nullT?Gets the previous item value (for update operations), or default if not applicable.

Remarks

Initializes a new instance of the CacheNotify class.