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
correlationIdstringOptional correlation identifier.
policyVersionstringOptional policy version.
policyHashstringOptional policy hash.
metadataIReadOnlyDictionary<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
HasMetadata
Gets a value indicating whether this context contains metadata.
public bool HasMetadata { get; }
Property Value
Metadata
Gets additional framework-neutral metadata supplied by the host.
public IReadOnlyDictionary<string, string> Metadata { get; }
Property Value
PolicyHash
Gets the policy hash associated with the evaluation, when supplied by the host.
public string? PolicyHash { get; }
Property Value
PolicyVersion
Gets the policy version associated with the evaluation, when supplied by the host.
public string? PolicyVersion { get; }