Class CommandHandlerArgumentResolution
- Namespace
- Cratis.Arc.Commands
- Assembly
- Cratis.Arc.Core.dll
Represents the outcome of resolving the arguments for a command handler.
public record CommandHandlerArgumentResolution : IEquatable<CommandHandlerArgumentResolution>
- Inheritance
-
CommandHandlerArgumentResolution
- Implements
- Inherited Members
- Extension Methods
Constructors
CommandHandlerArgumentResolution(CommandHandlerArgumentResolution)
protected CommandHandlerArgumentResolution(CommandHandlerArgumentResolution original)
Parameters
originalCommandHandlerArgumentResolution
CommandHandlerArgumentResolution(IReadOnlyList<object?>, CommandResult)
Represents the outcome of resolving the arguments for a command handler.
public CommandHandlerArgumentResolution(IReadOnlyList<object?> Arguments, CommandResult ControlResult)
Parameters
ArgumentsIReadOnlyList<object>The resolved arguments to pass to the handler, in declaration order.
ControlResultCommandResultThe CommandResult produced by any short-circuiting control values returned from the command's
Providemethod. Successful when nothing short-circuited.
Properties
Arguments
The resolved arguments to pass to the handler, in declaration order.
public IReadOnlyList<object?> Arguments { get; init; }
Property Value
ControlResult
The CommandResult produced by any short-circuiting control values returned from the
command's Provide method. Successful when nothing short-circuited.
public CommandResult ControlResult { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
IsShortCircuited
Gets a value indicating whether argument resolution short-circuited command execution.
public bool IsShortCircuited { get; }
Property Value
Methods
Deconstruct(out IReadOnlyList<object?>, out CommandResult)
public void Deconstruct(out IReadOnlyList<object?> Arguments, out CommandResult ControlResult)
Parameters
ArgumentsIReadOnlyList<object>ControlResultCommandResult
Equals(CommandHandlerArgumentResolution?)
public virtual bool Equals(CommandHandlerArgumentResolution? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(CommandHandlerArgumentResolution?, CommandHandlerArgumentResolution?)
public static bool operator ==(CommandHandlerArgumentResolution? left, CommandHandlerArgumentResolution? right)
Parameters
Returns
operator !=(CommandHandlerArgumentResolution?, CommandHandlerArgumentResolution?)
public static bool operator !=(CommandHandlerArgumentResolution? left, CommandHandlerArgumentResolution? right)