ExperimentAssignment
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllRepresents the experiment variant to which a run request is deterministically assigned.
public sealed record ExperimentAssignment : IEquatable<ExperimentAssignment>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<ExperimentAssignment>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”ExperimentAssignment()
Section titled “ ExperimentAssignment()”public ExperimentAssignment()Properties
Section titled “Properties”ExperimentId
Section titled “ ExperimentId”Gets the experiment identifier.
public required Guid ExperimentId { get; init; }Property Value
Section titled “Property Value”Variant
Section titled “ Variant”Gets the assigned variant name.
public required string Variant { get; init; }Property Value
Section titled “Property Value”Version
Section titled “ Version”Gets the definition version served by the assigned variant.
public required int Version { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(ExperimentAssignment?)
Section titled “ Equals(ExperimentAssignment?)”public bool Equals(ExperimentAssignment? other)Parameters
Section titled “Parameters”other ExperimentAssignment?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(ExperimentAssignment?, ExperimentAssignment?)
Section titled “ operator ==(ExperimentAssignment?, ExperimentAssignment?)”public static bool operator ==(ExperimentAssignment? left, ExperimentAssignment? right)Parameters
Section titled “Parameters”left ExperimentAssignment?
right ExperimentAssignment?
Returns
Section titled “Returns”operator !=(ExperimentAssignment?, ExperimentAssignment?)
Section titled “ operator !=(ExperimentAssignment?, ExperimentAssignment?)”public static bool operator !=(ExperimentAssignment? left, ExperimentAssignment? right)Parameters
Section titled “Parameters”left ExperimentAssignment?
right ExperimentAssignment?