Table of Contents

Interface IProgressBarHttp

Namespace
SunamoHttp.Interfaces
Assembly
SunamoHttp.dll

Interface for progress bar functionality in HTTP operations

public interface IProgressBarHttp
Extension Methods

Properties

IsRegistered

Gets or sets a value indicating whether the progress bar is registered

bool IsRegistered { get; set; }

Property Value

bool

WriteOnlyDivisibleBy

Gets or sets the value indicating progress should only be written when divisible by this number

int WriteOnlyDivisibleBy { get; set; }

Property Value

int

Methods

Done()

Marks all processing as done

void Done()

DoneOne()

Marks one item as done

void DoneOne()

DoneOne(int)

Marks one item as done

void DoneOne(int currentIndex)

Parameters

currentIndex int

The current index of the completed item

DoneOne(object)

Marks one item as done

void DoneOne(object asyncResult)

Parameters

asyncResult object

The async result object

Init(IPercentCalculatorHttp)

Initializes the progress bar with a percent calculator

void Init(IPercentCalculatorHttp percentCalculator)

Parameters

percentCalculator IPercentCalculatorHttp

The percent calculator

Init(IPercentCalculatorHttp, bool)

Initializes the progress bar with a percent calculator

void Init(IPercentCalculatorHttp percentCalculator, bool isNotUnitTest)

Parameters

percentCalculator IPercentCalculatorHttp

The percent calculator

isNotUnitTest bool

Indicates whether this is not a unit test context

Start(int)

Starts the progress tracking

void Start(int totalCount)

Parameters

totalCount int

The total count of items to process