Table of Contents

Class CommandPreconditionFailed

Namespace
Signal.Application.Commands
Assembly
Signal.Application.dll

A precondition rejected the invocation; the command did not run.

public sealed record CommandPreconditionFailed : IEquatable<CommandPreconditionFailed>
Inheritance
CommandPreconditionFailed
Implements
Inherited Members

Constructors

CommandPreconditionFailed(ParsedCommand, CommandDescriptor, string?)

A precondition rejected the invocation; the command did not run.

public CommandPreconditionFailed(ParsedCommand Parsed, CommandDescriptor Command, string? Reason)

Parameters

Parsed ParsedCommand

The parsed invocation.

Command CommandDescriptor

The matched command.

Reason string

A user-facing reason, or null to fail silently.

Properties

Command

The matched command.

public CommandDescriptor Command { get; init; }

Property Value

CommandDescriptor

Parsed

The parsed invocation.

public ParsedCommand Parsed { get; init; }

Property Value

ParsedCommand

Reason

A user-facing reason, or null to fail silently.

public string? Reason { get; init; }

Property Value

string