Class ProgressStateCAG
- Assembly
- SunamoCollectionsGeneric.dll
Represents progress state for Collection processing operations.
public class ProgressStateCAG
- Inheritance
-
ProgressStateCAG
- Inherited Members
- Extension Methods
Properties
Count
Gets or sets the current count of processed items.
public int Count { get; set; }
Property Value
IsRegistered
Gets or sets whether the progress state is registered with callbacks.
public bool IsRegistered { get; set; }
Property Value
Methods
Init(Action<int>, Action<int>, Action)
Initializes the progress state with callbacks for overall items count, item processing, and completion.
public void Init(Action<int> overallItems, Action<int> anotherItem, Action writeProgressBarEnd)
Parameters
overallItemsAction<int>Callback when overall count of items is determined.
anotherItemAction<int>Callback when another item is processed.
writeProgressBarEndActionCallback when processing is complete.
OnAnotherItem()
Triggers the AnotherItem event with an auto-incremented count.
public void OnAnotherItem()
OnAnotherItem(int)
Triggers the AnotherItem event with the specified count.
public void OnAnotherItem(int count)
Parameters
countintThe count of items processed.
OnOverallItems(int)
Triggers the OverallItems event and resets the count.
public void OnOverallItems(int totalCount)
Parameters
totalCountintThe total number of items to be processed.
OnWriteProgressBarEnd()
Triggers the WriteProgressBarEnd event.
public void OnWriteProgressBarEnd()
Events
AnotherItem
Event raised when another item is processed.
public event Action<int>? AnotherItem
Event Type
OverallItems
Event raised when the overall number of items is determined.
public event Action<int>? OverallItems
Event Type
WriteProgressBarEnd
Event raised when progress bar should end.
public event Action? WriteProgressBarEnd