Method ExecuteAsync
- Namespace
- IntentSharp.Targets
- Assembly
- IntentSharp.dll
ExecuteAsync(TargetExecution, CancellationToken)
Runs a command that passed the guardrail check. Only the runtime can create a TargetExecution, so nothing reaches this method unchecked. The target binds the parameters, converts values, opens a transaction for a write when its technology has one, honors Limits while it reads and classifies a rejection by throwing a TargetOperationException with the right Kind.
ValueTask<TargetResult> ExecuteAsync(TargetExecution execution, CancellationToken ct = default)
Parameters
executionTargetExecutionThe checked command, the decision it passed and the limits it runs under.
ctCancellationTokenCancelled when the caller cancels or when the operation's time limit passes.
Returns
- ValueTask<TargetResult>
The records read, or the count of what was changed.