Pip-Services-Commons-Dotnet
|
An interface for Commands, which are part of the Command design pattern. Each command wraps a method or function and allows to call them in uniform and safe manner. More...
Public Member Functions | |
IList< ValidationResult > | Validate (Parameters args) |
Validates command arguments before execution using defined schema. More... | |
![]() | |
Task< object > | ExecuteAsync (string correlationId, Parameters args) |
Executes component with arguments and receives execution result. More... | |
Properties | |
string | Name [get] |
Gets the command name. More... | |
Schema | Schema [get] |
Gets the command schema. More... | |
An interface for Commands, which are part of the Command design pattern. Each command wraps a method or function and allows to call them in uniform and safe manner.
See Command, IExecutable, ICommandInterceptor, InterceptedCommand
IList<ValidationResult> PipServices3.Commons.Commands.ICommand.Validate | ( | Parameters | args | ) |
Validates command arguments before execution using defined schema.
args | the parameters (arguments) to validate. |
See Parameters, ValidationResult
Implemented in PipServices3.Commons.Commands.Command, and PipServices3.Commons.Commands.InterceptedCommand.
|
get |
Gets the command name.
|
get |
Gets the command schema.