Class GeneratedValue

Namespace
Cratis.Arc.Commands
Assembly
Cratis.Arc.Core.dll

Represents a validated generated value captured during command argument resolution.

public sealed record GeneratedValue : IEquatable<GeneratedValue>
Inheritance
GeneratedValue
Implements
Inherited Members
Extension Methods

Constructors

GeneratedValue(int, string, Type, object)

Represents a validated generated value captured during command argument resolution.

public GeneratedValue(int Order, string Name, Type Type, object Value)

Parameters

Order int

The zero-based resolution order within the command.

Name string

The generated value name.

Type Type

The declared value type.

Value object

The generated value. Do not log or trace it.

Properties

Freshness

Gets the freshness policy captured from the generated parameter.

public GeneratedValueFreshness Freshness { get; init; }

Property Value

GeneratedValueFreshness

Name

The generated value name.

public string Name { get; init; }

Property Value

string

Order

The zero-based resolution order within the command.

public int Order { get; init; }

Property Value

int

Type

The declared value type.

public Type Type { get; init; }

Property Value

Type

Value

The generated value. Do not log or trace it.

public object Value { get; init; }

Property Value

object

Methods

Deconstruct(out int, out string, out Type, out object)

public void Deconstruct(out int Order, out string Name, out Type Type, out object Value)

Parameters

Order int
Name string
Type Type
Value object

Equals(GeneratedValue?)

public bool Equals(GeneratedValue? other)

Parameters

other GeneratedValue

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

Formats the capture metadata without exposing the generated value.

public override string ToString()

Returns

string

The order, name and declared type of the generated value.

Operators

operator ==(GeneratedValue?, GeneratedValue?)

public static bool operator ==(GeneratedValue? left, GeneratedValue? right)

Parameters

left GeneratedValue
right GeneratedValue

Returns

bool

operator !=(GeneratedValue?, GeneratedValue?)

public static bool operator !=(GeneratedValue? left, GeneratedValue? right)

Parameters

left GeneratedValue
right GeneratedValue

Returns

bool