Table of Contents

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

IConsole

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 CancellationToken

Used to cancel the request.

Returns

Task