Class GovernanceHttpResultMappingOptions
- Namespace
- AsiBackbone.AspNetCore.Results
- Assembly
- AsiBackbone.AspNetCore.dll
Provides host-overridable defaults for mapping AsiBackbone Core outcomes into HTTP responses.
public sealed class GovernanceHttpResultMappingOptions
- Inheritance
-
GovernanceHttpResultMappingOptions
- Inherited Members
Properties
AcknowledgmentRequiredStatusCode
Gets or sets the status code returned for acknowledgment-required governance decisions.
public int AcknowledgmentRequiredStatusCode { get; set; }
Property Value
DeferredStatusCode
Gets or sets the status code returned for deferred governance decisions.
public int DeferredStatusCode { get; set; }
Property Value
DeniedStatusCode
Gets or sets the status code returned for denied governance decisions.
public int DeniedStatusCode { get; set; }
Property Value
EscalationRecommendedStatusCode
Gets or sets the status code returned for escalation-recommended governance decisions.
public int EscalationRecommendedStatusCode { get; set; }
Property Value
GovernanceDecisionNotAllowedMessage
Gets or sets the safe user-facing message used for non-success governance decisions.
public string GovernanceDecisionNotAllowedMessage { get; set; }
Property Value
IncludePolicyMetadata
Gets or sets a value indicating whether policy version and policy hash values may be exposed in HTTP responses.
public bool IncludePolicyMetadata { get; set; }
Property Value
IncludeReasonMessages
Gets or sets a value indicating whether reason messages may be exposed in HTTP responses.
public bool IncludeReasonMessages { get; set; }
Property Value
IncludeTraceId
Gets or sets a value indicating whether trace identifiers may be exposed in HTTP responses.
public bool IncludeTraceId { get; set; }
Property Value
OperationFailureMessage
Gets or sets the safe user-facing message used for failed operation results.
public string OperationFailureMessage { get; set; }
Property Value
OperationFailureStatusCode
Gets or sets the status code returned for failed operation results.
public int OperationFailureStatusCode { get; set; }
Property Value
SuccessStatusCode
Gets or sets the status code returned for allowed governance decisions and successful operation results.
public int SuccessStatusCode { get; set; }
Property Value
WarningStatusCode
Gets or sets the status code returned for warning governance decisions.
public int WarningStatusCode { get; set; }
Property Value
Methods
Validate()
Validates the configured mapping options.
public void Validate()
Exceptions
- InvalidOperationException
Thrown when a configured status code or message is invalid.