Delegate ProgressCallbackAsync
Progress callback, invoked repeatedly during a long-running operation.
Assembly: SoDataBase.dll
Syntax
public delegate Task<bool> ProgressCallbackAsync(int total, int current, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
int |
total |
The current estimated total size of the operation; may change!
|
int |
current |
The current progress point
|
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
Task<bool> |
bool signaling cancel or continue: true means cancel, false means go on processing
|
Constructors
ProgressCallbackAsync(object, IntPtr)
Progress callback, invoked repeatedly during a long-running operation.
Declaration
public ProgressCallbackAsync(object @object, IntPtr method)
Parameters
Methods
BeginInvoke(int, int, CancellationToken, AsyncCallback, object)
Progress callback, invoked repeatedly during a long-running operation.
Declaration
public virtual IAsyncResult BeginInvoke(int total, int current, CancellationToken cancellationToken, AsyncCallback callback, object @object)
Parameters
Returns
EndInvoke(IAsyncResult)
Progress callback, invoked repeatedly during a long-running operation.
Declaration
public virtual Task<bool> EndInvoke(IAsyncResult result)
Parameters
Returns
Invoke(int, int, CancellationToken)
Progress callback, invoked repeatedly during a long-running operation.
Declaration
public virtual Task<bool> Invoke(int total, int current, CancellationToken cancellationToken)
Parameters
Returns
Extension Methods