AsyncCommand<TSettings> Class

Base class for an asynchronous command.
public abstract class AsyncCommand<TSettings> : ICommand<TSettings>, ICommandLimiter<TSettings>, 
    ICommand
    where TSettings : CommandSettings

Parameters

TSettings
The settings type.

Methods

abstract Task<int> ExecuteAsync(CommandContext, TSettings)
Executes the command.
virtual ValidationResult Validate(CommandContext, TSettings)
Validates the specified settings and remaining arguments.

Extension Methods

T And<AsyncCommand<TSettings>>(Action<AsyncCommand<TSettings>>)
Performs the specified action on the given object and then returns the object. Useful for fluent testing patterns where additional assertions or operations are chained together in a readable manner.