Table of Contents

Class ProgressStateCAG

Namespace
SunamoCollectionsGeneric._public.SunamoInterfaces.Interfaces
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

int

IsRegistered

Gets or sets whether the progress state is registered with callbacks.

public bool IsRegistered { get; set; }

Property Value

bool

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

overallItems Action<int>

Callback when overall count of items is determined.

anotherItem Action<int>

Callback when another item is processed.

writeProgressBarEnd Action

Callback 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

count int

The count of items processed.

OnOverallItems(int)

Triggers the OverallItems event and resets the count.

public void OnOverallItems(int totalCount)

Parameters

totalCount int

The 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

Action<int>

OverallItems

Event raised when the overall number of items is determined.

public event Action<int>? OverallItems

Event Type

Action<int>

WriteProgressBarEnd

Event raised when progress bar should end.

public event Action? WriteProgressBarEnd

Event Type

Action