Table of Contents

Class PolicySimulationConstraintStage

Namespace
ReferenceApplication.Web.Governance.Simulation
Assembly
ReferenceApplication.Web.dll

One constraint's part in the simulated evaluation.

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

Constructors

PolicySimulationConstraintStage(int, string, bool, bool, string?, IReadOnlyList<string>)

One constraint's part in the simulated evaluation.

public PolicySimulationConstraintStage(int Order, string Name, bool Disabled, bool Evaluated, string? Outcome, IReadOnlyList<string> ReasonCodes)

Parameters

Order int

The constraint's position in evaluation order, starting at 1.

Name string

The constraint name.

Disabled bool

Whether the constraint was left out of the simulated policy.

Evaluated bool

Whether the evaluator ran the constraint.

Outcome string

The constraint outcome, when it ran.

ReasonCodes IReadOnlyList<string>

The constraint's reason codes.

Properties

Disabled

Whether the constraint was left out of the simulated policy.

public bool Disabled { get; init; }

Property Value

bool

Evaluated

Whether the evaluator ran the constraint.

public bool Evaluated { get; init; }

Property Value

bool

Name

The constraint name.

public string Name { get; init; }

Property Value

string

Order

The constraint's position in evaluation order, starting at 1.

public int Order { get; init; }

Property Value

int

Outcome

The constraint outcome, when it ran.

public string? Outcome { get; init; }

Property Value

string

ReasonCodes

The constraint's reason codes.

public IReadOnlyList<string> ReasonCodes { get; init; }

Property Value

IReadOnlyList<string>