Table of Contents

Class DlpFailurePolicyContext

Namespace
AsiBackbone.Core.Classification
Assembly
AsiBackbone.Core.dll

Represents provider-neutral context for resolving DLP or classification failure behavior.

public sealed class DlpFailurePolicyContext
Inheritance
DlpFailurePolicyContext
Inherited Members

Properties

CorrelationId

Gets the correlation identifier associated with the governed flow, when supplied.

public string? CorrelationId { get; }

Property Value

string

Environment

Gets the host-defined environment, when supplied.

public string? Environment { get; }

Property Value

string

FailureKind

Gets the provider-neutral DLP or classification failure kind.

public DlpClassificationFailureKind FailureKind { get; }

Property Value

DlpClassificationFailureKind

HasMetadata

Gets a value indicating whether metadata is present.

public bool HasMetadata { get; }

Property Value

bool

HasTimeout

Gets a value indicating whether timeout context is present.

public bool HasTimeout { get; }

Property Value

bool

IntentCategory

Gets the host-defined intent category, when supplied.

public string? IntentCategory { get; }

Property Value

string

Metadata

Gets provider-neutral host metadata associated with the failure.

public IReadOnlyDictionary<string, string> Metadata { get; }

Property Value

IReadOnlyDictionary<string, string>

PolicyHash

Gets the policy hash associated with the governed flow, when supplied.

public string? PolicyHash { get; }

Property Value

string

PolicyVersion

Gets the policy version associated with the governed flow, when supplied.

public string? PolicyVersion { get; }

Property Value

string

RiskLevel

Gets the host-assigned risk level for the intent.

public DlpIntentRiskLevel RiskLevel { get; }

Property Value

DlpIntentRiskLevel

Timeout

Gets the timeout value associated with the failure, when applicable.

public TimeSpan? Timeout { get; }

Property Value

TimeSpan?

TraceId

Gets the trace identifier associated with the governed flow, when supplied.

public string? TraceId { get; }

Property Value

string

Methods

Create(DlpClassificationFailureKind, DlpIntentRiskLevel, string?, string?, string?, string?, string?, string?, TimeSpan?, IReadOnlyDictionary<string, string>?)

Creates a provider-neutral DLP or classification failure policy context.

public static DlpFailurePolicyContext Create(DlpClassificationFailureKind failureKind, DlpIntentRiskLevel riskLevel, string? intentCategory = null, string? environment = null, string? correlationId = null, string? traceId = null, string? policyVersion = null, string? policyHash = null, TimeSpan? timeout = null, IReadOnlyDictionary<string, string>? metadata = null)

Parameters

failureKind DlpClassificationFailureKind
riskLevel DlpIntentRiskLevel
intentCategory string
environment string
correlationId string
traceId string
policyVersion string
policyHash string
timeout TimeSpan?
metadata IReadOnlyDictionary<string, string>

Returns

DlpFailurePolicyContext

TimeoutFailure(DlpIntentRiskLevel, TimeSpan?, string?, string?, string?, string?, string?, string?, IReadOnlyDictionary<string, string>?)

Creates timeout-specific failure policy context.

public static DlpFailurePolicyContext TimeoutFailure(DlpIntentRiskLevel riskLevel, TimeSpan? timeout = null, string? intentCategory = null, string? environment = null, string? correlationId = null, string? traceId = null, string? policyVersion = null, string? policyHash = null, IReadOnlyDictionary<string, string>? metadata = null)

Parameters

riskLevel DlpIntentRiskLevel
timeout TimeSpan?
intentCategory string
environment string
correlationId string
traceId string
policyVersion string
policyHash string
metadata IReadOnlyDictionary<string, string>

Returns

DlpFailurePolicyContext