Class SynchronousProgress<T>
Reports progress updates using callbacks/events. Performs the callbacks immediately on the same thread.
Inheritance
SynchronousProgress<T>
Assembly: NanoByte.Common.dll
Syntax
public class SynchronousProgress<T> : Object
Type Parameters
Constructors
SynchronousProgress(Action<T>)
Captures the current synchronization context for callbacks.
Declaration
public SynchronousProgress(Action<T> callback = null)
Parameters
Type |
Name |
Description |
Action<T> |
callback |
|
Methods
OnReport(T)
Declaration
protected void OnReport(T value)
Parameters
Type |
Name |
Description |
T |
value |
|
Events
ProgressChanged
Raised for each reported progress value.
Declaration
public event Action<T> ProgressChanged
Event Type
Extension Methods