Show / Hide Table of Contents

Class CommandValidator

Validates a given Command against a CommandDefinition to see if there's any errors with the structure before passing it up to the server for processing.

Inheritance
object
CommandValidator
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Petabridge.Cmd.Validation
Assembly: Petabridge.Cmd.Common.dll
Syntax
public sealed class CommandValidator

Constructors

CommandValidator(CommandPalette)

Creates a new CommandValidator instance.

Declaration
public CommandValidator(CommandPalette palette)
Parameters
Type Name Description
CommandPalette palette

The palette of the command we're going to validate.

Properties

Palette

The palette of the command for which we're going to validate.

Declaration
public CommandPalette Palette { get; }
Property Value
Type Description
CommandPalette

Methods

Validate(Command, bool)

Declaration
public IEnumerable<ValidationError> Validate(Command cmd, bool skipArguments = false)
Parameters
Type Name Description
Command cmd
bool skipArguments
Returns
Type Description
IEnumerable<ValidationError>
In this article
Back to top Generated by DocFX