Table of Contents

Class EndpointGovernanceDescriptor

Namespace
AsiBackbone.AspNetCore.Endpoints
Assembly
AsiBackbone.AspNetCore.dll

Represents normalized AsiBackbone governance metadata resolved from an ASP.NET Core endpoint.

public sealed class EndpointGovernanceDescriptor
Inheritance
EndpointGovernanceDescriptor
Inherited Members

Properties

CapabilityScopes

Gets the required capability-grant scopes attached to the endpoint.

public IReadOnlyList<string> CapabilityScopes { get; }

Property Value

IReadOnlyList<string>

EmitGovernanceAudit

Gets a value indicating whether governance audit emission is requested.

public bool EmitGovernanceAudit { get; }

Property Value

bool

HasGovernanceMetadata

Gets a value indicating whether the endpoint contains any AsiBackbone governance metadata.

public bool HasGovernanceMetadata { get; }

Property Value

bool

OperationName

Gets the operation name used for decision receipt and acknowledgment challenge construction.

public string OperationName { get; }

Property Value

string

PolicyTypes

Gets the policy marker or resolver types attached to the endpoint.

public IReadOnlyList<Type> PolicyTypes { get; }

Property Value

IReadOnlyList<Type>

RequiresAcknowledgment

Gets a value indicating whether liability-handshake support is requested.

public bool RequiresAcknowledgment { get; }

Property Value

bool

ShortCircuitOnFirstDenial

Gets an endpoint-scoped first-denial short-circuit preference, when endpoint metadata supplied one.

public bool? ShortCircuitOnFirstDenial { get; }

Property Value

bool?

Methods

FromEndpoint(Endpoint?)

Creates a descriptor from the selected ASP.NET Core endpoint.

public static EndpointGovernanceDescriptor FromEndpoint(Endpoint? endpoint)

Parameters

endpoint Endpoint

The selected endpoint.

Returns

EndpointGovernanceDescriptor

A normalized descriptor.

None(string)

Creates a descriptor that does not request governance handling.

public static EndpointGovernanceDescriptor None(string operationName)

Parameters

operationName string

The operation name to associate with the descriptor.

Returns

EndpointGovernanceDescriptor

A descriptor with no governance metadata.

ToMetadata()

Converts descriptor values into safe metadata for framework-neutral governance evaluation and decision receipt.

public IReadOnlyDictionary<string, string> ToMetadata()

Returns

IReadOnlyDictionary<string, string>

A normalized metadata dictionary.

ToMetadata(EndpointGovernanceMetadataMode)

Converts descriptor values into safe metadata for framework-neutral governance evaluation and decision receipt.

public IReadOnlyDictionary<string, string> ToMetadata(EndpointGovernanceMetadataMode metadataMode)

Parameters

metadataMode EndpointGovernanceMetadataMode

The endpoint metadata mode to apply.

Returns

IReadOnlyDictionary<string, string>

A normalized metadata dictionary.