Interface IEndpointGovernanceService
- Namespace
- AsiBackbone.AspNetCore.Endpoints
- Assembly
- AsiBackbone.AspNetCore.dll
Evaluates AsiBackbone governance metadata attached to an ASP.NET Core endpoint before endpoint execution.
public interface IEndpointGovernanceService
Methods
EvaluateAsync(HttpContext, EndpointGovernanceDescriptor, CancellationToken)
Evaluates the selected endpoint against host-owned AsiBackbone governance services.
ValueTask<EndpointGovernanceResult> EvaluateAsync(HttpContext httpContext, EndpointGovernanceDescriptor descriptor, CancellationToken cancellationToken = default)
Parameters
httpContextHttpContextThe current HTTP context.
descriptorEndpointGovernanceDescriptorThe normalized endpoint governance descriptor.
cancellationTokenCancellationTokenA token that can cancel endpoint governance evaluation.
Returns
- ValueTask<EndpointGovernanceResult>
The endpoint governance result.