Table of Contents

Class PolicySimulationEndpointResult

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

What the real endpoint would do with the decision.

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

Constructors

PolicySimulationEndpointResult(string, int?, string, string?, string?)

What the real endpoint would do with the decision.

public PolicySimulationEndpointResult(string Kind, int? StatusCode, string Description, string? RequiredAcknowledgmentCode, string? RequiredAcknowledgmentText)

Parameters

Kind string

The result: allowed, blocked, or acknowledgment-challenge.

StatusCode int?

The HTTP status the endpoint would return, when governance answers the request itself.

Description string

A short description of the result.

RequiredAcknowledgmentCode string

The acknowledgment code the challenge would ask for.

RequiredAcknowledgmentText string

The acknowledgment text the challenge would ask for.

Properties

Description

A short description of the result.

public string Description { get; init; }

Property Value

string

Kind

The result: allowed, blocked, or acknowledgment-challenge.

public string Kind { get; init; }

Property Value

string

RequiredAcknowledgmentCode

The acknowledgment code the challenge would ask for.

public string? RequiredAcknowledgmentCode { get; init; }

Property Value

string

RequiredAcknowledgmentText

The acknowledgment text the challenge would ask for.

public string? RequiredAcknowledgmentText { get; init; }

Property Value

string

StatusCode

The HTTP status the endpoint would return, when governance answers the request itself.

public int? StatusCode { get; init; }

Property Value

int?