ParseResult.InvokeAsync(InvocationConfiguration, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Invokes the appropriate command handler for a parsed command line input.
public System.Threading.Tasks.Task<int> InvokeAsync(System.CommandLine.InvocationConfiguration? configuration = default, System.Threading.CancellationToken cancellationToken = default);
member this.InvokeAsync : System.CommandLine.InvocationConfiguration * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
Public Function InvokeAsync (Optional configuration As InvocationConfiguration = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Integer)
Parameters
- configuration
- InvocationConfiguration
The configuration used to define invocation behaviors.
- cancellationToken
- CancellationToken
A token that can be used to cancel an invocation.
Returns
A task whose result can be used as a process exit code.