Interface ICommandProcessor
Singleton application service contract for the service processing commands.
Namespace: Kephas.Application.Console
Assembly: Kephas.Application.Console.dll
Syntax
[SingletonAppServiceContract]
public interface ICommandProcessor
Methods
| Improve this Doc View SourceProcessAsync(String, IExpando, CancellationToken)
Executes the asynchronous operation.
Declaration
Task<object> ProcessAsync(string command, IExpando args = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.String | command | The command. |
IExpando | args | Optional. The arguments. |
System.Threading.CancellationToken | cancellationToken | Optional. A token that allows processing to be cancelled. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Object> | The asynchronous result. |