Interface IEndpointCommand
- Namespace
- TypedRest.CommandLine.Commands
- Assembly
- TypedRest.CommandLine.dll
Command operating on an IEndpoint.
public interface IEndpointCommand
Properties
Console
The text input/output device used for user interaction.
IConsole Console { get; set; }
Property Value
Methods
ExecuteAsync(IReadOnlyList<string>, CancellationToken)
Parses command-line arguments and executes the resulting operation.
Task ExecuteAsync(IReadOnlyList<string> args, CancellationToken cancellationToken = default)
Parameters
args
IReadOnlyList<string>the console arguments.
cancellationToken
CancellationTokenUsed to cancel the request.