ICommand<TSettings> Interface

Represents a command.
public interface ICommand<TSettings> : ICommandLimiter<TSettings>, ICommand 
    where TSettings : CommandSettings

Parameters

TSettings
The settings type.

Methods

abstract Task<int> Execute(CommandContext, TSettings)
Executes the command.

Extension Methods

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