Table of Contents

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

httpContext HttpContext

The current HTTP context.

descriptor EndpointGovernanceDescriptor

The normalized endpoint governance descriptor.

cancellationToken CancellationToken

A token that can cancel endpoint governance evaluation.

Returns

ValueTask<EndpointGovernanceResult>

The endpoint governance result.