Method ExecuteAsync
- Namespace
- Oscova.Agents.Tasks
- Assembly
- Oscova.Agents.dll
ExecuteAsync(AgentTaskDefinition, AgentTaskRun?, CancellationToken)
Executes the task. If run is provided the executor
populates it in place and returns it; otherwise a new
Oscova.Agents.Tasks.AgentTaskRun is created internally.
Task<AgentTaskRun> ExecuteAsync(AgentTaskDefinition task, AgentTaskRun? run = null, CancellationToken ct = default)Parameters
taskAgentTaskDefinitionrunAgentTaskRun?ctCancellationToken