Table of Contents

Class AsiBackboneConstraintEvaluationContext

Namespace
AsiBackbone.Core.Constraints
Assembly
AsiBackbone.Core.dll

Default framework-neutral context value used during constraint evaluation.

public sealed class AsiBackboneConstraintEvaluationContext : IAsiBackboneConstraintEvaluationContext
Inheritance
AsiBackboneConstraintEvaluationContext
Implements
Inherited Members

Remarks

Initializes a new instance of the AsiBackboneConstraintEvaluationContext class.

Constructors

AsiBackboneConstraintEvaluationContext(string?, string?, string?, IReadOnlyDictionary<string, string>?)

Default framework-neutral context value used during constraint evaluation.

public AsiBackboneConstraintEvaluationContext(string? correlationId = null, string? policyVersion = null, string? policyHash = null, IReadOnlyDictionary<string, string>? metadata = null)

Parameters

correlationId string

Optional correlation identifier.

policyVersion string

Optional policy version.

policyHash string

Optional policy hash.

metadata IReadOnlyDictionary<string, string>

Optional host-provided metadata.

Remarks

Initializes a new instance of the AsiBackboneConstraintEvaluationContext class.

Properties

CorrelationId

Gets the correlation identifier associated with the evaluation, when supplied by the host.

public string? CorrelationId { get; }

Property Value

string

HasMetadata

Gets a value indicating whether this context contains metadata.

public bool HasMetadata { get; }

Property Value

bool

Metadata

Gets additional framework-neutral metadata supplied by the host.

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

Property Value

IReadOnlyDictionary<string, string>

PolicyHash

Gets the policy hash associated with the evaluation, when supplied by the host.

public string? PolicyHash { get; }

Property Value

string

PolicyVersion

Gets the policy version associated with the evaluation, when supplied by the host.

public string? PolicyVersion { get; }

Property Value

string