Command<TSettings> Class

Base class for a command.
public abstract class Command<TSettings> : ICommand<TSettings>, ICommandLimiter<TSettings>, 
    ICommand where TSettings : CommandSettings

Parameters

TSettings
The settings type.

Methods

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

Extension Methods

T And<Command<TSettings>>(Action<Command<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.

See Also