Class UploadCommand
- Namespace
- TypedRest.CommandLine.Commands.Raw
- Assembly
- TypedRest.CommandLine.dll
Command operating on an IUploadEndpoint.
public class UploadCommand : EndpointCommand<IUploadEndpoint>, IEndpointCommand
- Inheritance
-
UploadCommand
- Implements
- Inherited Members
Constructors
UploadCommand(IUploadEndpoint)
Command operating on an IUploadEndpoint.
public UploadCommand(IUploadEndpoint endpoint)
Parameters
endpoint
IUploadEndpointThe 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
CancellationTokenUsed to cancel the request.