Table of Contents

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

int

DeferredStatusCode

Gets or sets the status code returned for deferred governance decisions.

public int DeferredStatusCode { get; set; }

Property Value

int

DeniedStatusCode

Gets or sets the status code returned for denied governance decisions.

public int DeniedStatusCode { get; set; }

Property Value

int

EscalationRecommendedStatusCode

Gets or sets the status code returned for escalation-recommended governance decisions.

public int EscalationRecommendedStatusCode { get; set; }

Property Value

int

GovernanceDecisionNotAllowedMessage

Gets or sets the safe user-facing message used for non-success governance decisions.

public string GovernanceDecisionNotAllowedMessage { get; set; }

Property Value

string

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

bool

IncludeReasonMessages

Gets or sets a value indicating whether reason messages may be exposed in HTTP responses.

public bool IncludeReasonMessages { get; set; }

Property Value

bool

IncludeTraceId

Gets or sets a value indicating whether trace identifiers may be exposed in HTTP responses.

public bool IncludeTraceId { get; set; }

Property Value

bool

OperationFailureMessage

Gets or sets the safe user-facing message used for failed operation results.

public string OperationFailureMessage { get; set; }

Property Value

string

OperationFailureStatusCode

Gets or sets the status code returned for failed operation results.

public int OperationFailureStatusCode { get; set; }

Property Value

int

SuccessStatusCode

Gets or sets the status code returned for allowed governance decisions and successful operation results.

public int SuccessStatusCode { get; set; }

Property Value

int

WarningStatusCode

Gets or sets the status code returned for warning governance decisions.

public int WarningStatusCode { get; set; }

Property Value

int

Methods

Validate()

Validates the configured mapping options.

public void Validate()

Exceptions

InvalidOperationException

Thrown when a configured status code or message is invalid.