,System.Int32,System.Int32,-0)}
CacheNotify(CacheAction, T?, PooledBatch?, int, int, T?) constructor¶
Defined in
Type: CacheNotifyReactiveList.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
| Name | Type | Description |
|---|---|---|
Action | CacheAction | Gets the cache action that triggered the notification. |
Item | T? | Gets the item associated with the cache action, or default if the action applies to a batch. |
Batch = null | PooledBatch | Gets an optional batch of items associated with the cache action. |
CurrentIndex = -1 | int (opens in a new tab) | Gets the current index of the item in the collection, or -1 if not applicable. |
PreviousIndex = -1 | int (opens in a new tab) | Gets the previous index of the item in the collection, or -1 if not applicable. |
Previous = null | T? | Gets the previous item value (for update operations), or default if not applicable. |
Remarks
Initializes a new instance of the CacheNotify class.