Skip to main content

ICommandChannelAsync.DoAsync(String, Object, CancellationToken) Method

Asynchronously accepts and executes a specified command with arguments.

Namespace: DevExpress.Xpo.Helpers

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

Task<object> DoAsync(
    string command,
    object args,
    CancellationToken cancellationToken = default(CancellationToken)
)

Parameters

Name Type Description
command String

A command to be accepted and executed.

args Object

Arguments the command accepts.

Optional Parameters

Name Type Default Description
cancellationToken CancellationToken null

A CancellationToken object that delivers a cancellation notice to the running operation.

Returns

Type Description
Task<Object>

A Task that returns an object. This object is the operation result.

See Also