Table of Contents

Class PolicySimulationResult

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

The stage-by-stage result of a simulated governance evaluation. Nothing in it was persisted.

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

Constructors

PolicySimulationResult(string, string, bool, IReadOnlyList<string>, PolicySimulationActor, IReadOnlyDictionary<string, string>, IReadOnlyList<PolicySimulationConstraintStage>, PolicySimulationDecisionPolicyStage, PolicySimulationCapabilityStage, PolicySimulationReceipt?, PolicySimulationEndpointResult, PolicySimulationSendForReal)

The stage-by-stage result of a simulated governance evaluation. Nothing in it was persisted.

public PolicySimulationResult(string Operation, string OperationName, bool SimulatedWithModifiedPolicy, IReadOnlyList<string> DisabledConstraints, PolicySimulationActor Actor, IReadOnlyDictionary<string, string> Payload, IReadOnlyList<PolicySimulationConstraintStage> Constraints, PolicySimulationDecisionPolicyStage DecisionPolicy, PolicySimulationCapabilityStage Capability, PolicySimulationReceipt? Receipt, PolicySimulationEndpointResult EndpointResult, PolicySimulationSendForReal SendForReal)

Parameters

Operation string

The governed operation key.

OperationName string

The operation name, as endpoint governance reports it.

SimulatedWithModifiedPolicy bool

Whether one or more constraints were left out, so the result differs from the real policy.

DisabledConstraints IReadOnlyList<string>

The constraints left out of the simulated policy.

Actor PolicySimulationActor

The simulated actor.

Payload IReadOnlyDictionary<string, string>

The form fields the governed request would post, excluding the antiforgery field.

Constraints IReadOnlyList<PolicySimulationConstraintStage>

Each constraint's result, in evaluation order.

DecisionPolicy PolicySimulationDecisionPolicyStage

The composed decision and the decision-policy step.

Capability PolicySimulationCapabilityStage

The capability-grant validation step.

Receipt PolicySimulationReceipt

The decision receipt that would be appended to the ledger.

EndpointResult PolicySimulationEndpointResult

What the real endpoint would do with the decision.

SendForReal PolicySimulationSendForReal

Whether the same inputs can be sent through the real endpoint from the explorer.

Properties

Actor

The simulated actor.

public PolicySimulationActor Actor { get; init; }

Property Value

PolicySimulationActor

Capability

The capability-grant validation step.

public PolicySimulationCapabilityStage Capability { get; init; }

Property Value

PolicySimulationCapabilityStage

Constraints

Each constraint's result, in evaluation order.

public IReadOnlyList<PolicySimulationConstraintStage> Constraints { get; init; }

Property Value

IReadOnlyList<PolicySimulationConstraintStage>

DecisionPolicy

The composed decision and the decision-policy step.

public PolicySimulationDecisionPolicyStage DecisionPolicy { get; init; }

Property Value

PolicySimulationDecisionPolicyStage

DisabledConstraints

The constraints left out of the simulated policy.

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

Property Value

IReadOnlyList<string>

EndpointResult

What the real endpoint would do with the decision.

public PolicySimulationEndpointResult EndpointResult { get; init; }

Property Value

PolicySimulationEndpointResult

Operation

The governed operation key.

public string Operation { get; init; }

Property Value

string

OperationName

The operation name, as endpoint governance reports it.

public string OperationName { get; init; }

Property Value

string

Payload

The form fields the governed request would post, excluding the antiforgery field.

public IReadOnlyDictionary<string, string> Payload { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Receipt

The decision receipt that would be appended to the ledger.

public PolicySimulationReceipt? Receipt { get; init; }

Property Value

PolicySimulationReceipt

SendForReal

Whether the same inputs can be sent through the real endpoint from the explorer.

public PolicySimulationSendForReal SendForReal { get; init; }

Property Value

PolicySimulationSendForReal

SimulatedWithModifiedPolicy

Whether one or more constraints were left out, so the result differs from the real policy.

public bool SimulatedWithModifiedPolicy { get; init; }

Property Value

bool