Show / Hide Table of Contents

Delegate ProgressCallbackAsync

Progress callback, invoked repeatedly during a long-running operation.

Namespace: SuperOffice.CRM.Entities
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
Type Name Description
object object
IntPtr method

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
Type Name Description
int total
int current
CancellationToken cancellationToken
AsyncCallback callback
object object
Returns
Type Description
IAsyncResult

EndInvoke(IAsyncResult)

Progress callback, invoked repeatedly during a long-running operation.

Declaration
public virtual Task<bool> EndInvoke(IAsyncResult result)
Parameters
Type Name Description
IAsyncResult result
Returns
Type Description
Task<bool>

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
Type Name Description
int total
int current
CancellationToken cancellationToken
Returns
Type Description
Task<bool>

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top