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
KindstringThe result:
allowed,blocked, oracknowledgment-challenge.StatusCodeint?The HTTP status the endpoint would return, when governance answers the request itself.
DescriptionstringA short description of the result.
RequiredAcknowledgmentCodestringThe acknowledgment code the challenge would ask for.
RequiredAcknowledgmentTextstringThe acknowledgment text the challenge would ask for.
Properties
Description
A short description of the result.
public string Description { get; init; }
Property Value
Kind
The result: allowed, blocked, or acknowledgment-challenge.
public string Kind { get; init; }
Property Value
RequiredAcknowledgmentCode
The acknowledgment code the challenge would ask for.
public string? RequiredAcknowledgmentCode { get; init; }
Property Value
RequiredAcknowledgmentText
The acknowledgment text the challenge would ask for.
public string? RequiredAcknowledgmentText { get; init; }
Property Value
StatusCode
The HTTP status the endpoint would return, when governance answers the request itself.
public int? StatusCode { get; init; }
Property Value
- int?