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
WriteOnlyDivisibleBy
Gets or sets the value indicating progress should only be written when divisible by this number
int WriteOnlyDivisibleBy { get; set; }
Property Value
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
currentIndexintThe current index of the completed item
DoneOne(object)
Marks one item as done
void DoneOne(object asyncResult)
Parameters
asyncResultobjectThe async result object
Init(IPercentCalculatorHttp)
Initializes the progress bar with a percent calculator
void Init(IPercentCalculatorHttp percentCalculator)
Parameters
percentCalculatorIPercentCalculatorHttpThe percent calculator
Init(IPercentCalculatorHttp, bool)
Initializes the progress bar with a percent calculator
void Init(IPercentCalculatorHttp percentCalculator, bool isNotUnitTest)
Parameters
percentCalculatorIPercentCalculatorHttpThe percent calculator
isNotUnitTestboolIndicates whether this is not a unit test context
Start(int)
Starts the progress tracking
void Start(int totalCount)
Parameters
totalCountintThe total count of items to process