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
EmitGovernanceAudit
Gets a value indicating whether governance audit emission is requested.
public bool EmitGovernanceAudit { get; }
Property Value
HasGovernanceMetadata
Gets a value indicating whether the endpoint contains any AsiBackbone governance metadata.
public bool HasGovernanceMetadata { get; }
Property Value
OperationName
Gets the operation name used for decision receipt and acknowledgment challenge construction.
public string OperationName { get; }
Property Value
PolicyTypes
Gets the policy marker or resolver types attached to the endpoint.
public IReadOnlyList<Type> PolicyTypes { get; }
Property Value
RequiresAcknowledgment
Gets a value indicating whether liability-handshake support is requested.
public bool RequiresAcknowledgment { get; }
Property Value
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
endpointEndpointThe 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
operationNamestringThe 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
metadataModeEndpointGovernanceMetadataModeThe endpoint metadata mode to apply.
Returns
- IReadOnlyDictionary<string, string>
A normalized metadata dictionary.