Table of Contents

Class ActionCommand

Namespace
TypedRest.CommandLine.Commands.Rpc
Assembly
TypedRest.CommandLine.dll

Command operating on an IActionEndpoint.

public class ActionCommand : EndpointCommand<IActionEndpoint>, IEndpointCommand
Inheritance
ActionCommand
Implements
Inherited Members

Constructors

ActionCommand(IActionEndpoint)

Command operating on an IActionEndpoint.

public ActionCommand(IActionEndpoint endpoint)

Parameters

endpoint IActionEndpoint

The endpoint this command operates on.

Methods

ExecuteInnerAsync(IReadOnlyList<string>, CancellationToken)

Parses command-line arguments and executes the resulting operation when no additional sub-IEndpointCommand is specified.

protected override Task ExecuteInnerAsync(IReadOnlyList<string> args, CancellationToken cancellationToken = default)

Parameters

args IReadOnlyList<string>

the console arguments.

cancellationToken CancellationToken

Used to cancel the request.

Returns

Task