Represents a single execution of an asynchronous delegate command, providing access to the execution's Task and allowing cancellation of that specific invocation.
Namespace: Metalama.Patterns.Wpf
Assembly: Metalama.Patterns.Wpf.dll
Syntax
public readonly struct DelegateCommandExecutionRemarks
This struct is returned by the Execute() and Execute(T) methods, and is also provided through the Executed event.
Use this type to track and cancel individual command executions, especially when concurrent execution is enabled via SupportsConcurrentExecution.
Properties
| Name | Description |
|---|---|
| IsCancellationRequested | Gets a value indicating whether Cancel() has been called for this execution. |
| Task | Gets the Task representing this execution of the command. |
Methods
| Name | Description |
|---|---|
| Cancel() | Cancels this specific execution of the command by signaling the CancellationToken that was passed to the execute delegate. |