Table of Contents

Class ShortCircuitOnFirstDenialAttribute

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

Marks an ASP.NET Core endpoint as requesting latency-optimized fast-abort policy evaluation after the first denied constraint result.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class ShortCircuitOnFirstDenialAttribute : Attribute, IEndpointPolicyEvaluationOptionsMetadata, IEndpointGovernanceMetadata
Inheritance
ShortCircuitOnFirstDenialAttribute
Implements
Inherited Members

Remarks

This metadata is resolved into the endpoint governance descriptor and exported into framework-neutral evaluation metadata. Hosts still own how endpoint metadata is mapped into evaluator configuration.

Constructors

ShortCircuitOnFirstDenialAttribute(bool)

Marks an ASP.NET Core endpoint as requesting latency-optimized fast-abort policy evaluation after the first denied constraint result.

public ShortCircuitOnFirstDenialAttribute(bool enabled = true)

Parameters

enabled bool

Whether first-denial short-circuit metadata is enabled for the endpoint.

Remarks

This metadata is resolved into the endpoint governance descriptor and exported into framework-neutral evaluation metadata. Hosts still own how endpoint metadata is mapped into evaluator configuration.

Properties

ShortCircuitOnFirstDenial

Gets an endpoint-level override for latency-optimized first-denial short-circuit behavior, when supplied.

public bool? ShortCircuitOnFirstDenial { get; }

Property Value

bool?