Interface IAsyncOptionHandler<T>
- Namespace
- Albatross.CommandLine
- Assembly
- Albatross.CommandLine.dll
Handler for processing command options or arguments as pre-actions before the main command handler executes. Use this interface for handlers that perform side effects without returning a value.
public interface IAsyncOptionHandler<in T> where T : Option
Type Parameters
TThe type of the option being handled.
Methods
InvokeAsync(T, ParseResult, CancellationToken)
Processes the option asynchronously.
Task InvokeAsync(T symbol, ParseResult result, CancellationToken cancellationToken)
Parameters
symbolTThe option being processed.
resultParseResultThe parse result containing the option's value.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.