Class TaskuraiCommand
Taskurai command handler
Assembly: Taskurai.Worker.dll
Declaration
public abstract class TaskuraiCommand : ITaskuraiCommand
Implements:
Taskurai.Worker.ITaskuraiCommand
Properties
Logger
Logger see Microsoft.Extensions.Logging.ILogger
.
Declaration
protected ILogger Logger { get; }
Taskurai
Taskurai client Taskurai.TaskuraiClient.
Declaration
protected TaskuraiClient Taskurai { get; }
RequestedVersion
Requested version by task (null if no version specified)
Declaration
public int? RequestedVersion { get; }
Methods
ExecuteAsync(TaskuraiTaskContext, CancellationToken)
Execute the command handler
Declaration
public abstract Task ExecuteAsync(TaskuraiTaskContext context, CancellationToken cancellationToken)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name | Description |
---|---|---|
Taskurai.Worker.TaskuraiTaskContext | context | Task context |
System.Threading.CancellationToken | cancellationToken | Cancellation token |