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
OrderintThe zero-based resolution order within the command.
NamestringThe generated value name.
TypeTypeThe declared value type.
ValueobjectThe 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
Name
The generated value name.
public string Name { get; init; }
Property Value
Order
The zero-based resolution order within the command.
public int Order { get; init; }
Property Value
Type
The declared value type.
public Type Type { get; init; }
Property Value
Value
The generated value. Do not log or trace it.
public object Value { get; init; }
Property Value
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
Equals(GeneratedValue?)
public bool Equals(GeneratedValue? other)
Parameters
otherGeneratedValue
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
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
leftGeneratedValuerightGeneratedValue
Returns
operator !=(GeneratedValue?, GeneratedValue?)
public static bool operator !=(GeneratedValue? left, GeneratedValue? right)
Parameters
leftGeneratedValuerightGeneratedValue