Class AsiBackboneStrictGovernanceServiceCollectionExtensions
- Namespace
- AsiBackbone.AspNetCore.DependencyInjection
- Assembly
- AsiBackbone.AspNetCore.dll
Provides strict governance registration helpers for hosts that prefer fail-closed defaults.
public static class AsiBackboneStrictGovernanceServiceCollectionExtensions
- Inheritance
-
AsiBackboneStrictGovernanceServiceCollectionExtensions
- Inherited Members
Methods
AddAsiBackboneStrictGovernance(IServiceCollection)
Applies the strict governance profile for policy evaluation and ASP.NET Core endpoint governance options.
public static IServiceCollection AddAsiBackboneStrictGovernance(this IServiceCollection services)
Parameters
servicesIServiceCollectionThe service collection to configure.
Returns
- IServiceCollection
The same service collection so calls can be chained.
Remarks
This helper keeps strict posture explicit in the current 3.x line while giving production hosts a single opt-in call for fail-closed evaluation posture. It configures options only; hosts still own authentication, authorization, constraint registration, endpoint metadata, persistence, and execution enforcement.
Exceptions
- ArgumentNullException
Thrown when
servicesis null.
UseStrictGovernanceProfile(IAsiBackboneBuilder)
Applies the strict governance profile through the explicit AddAsiBackbone builder facade.
public static IAsiBackboneBuilder UseStrictGovernanceProfile(this IAsiBackboneBuilder builder)
Parameters
builderIAsiBackboneBuilderThe AsiBackbone builder facade being configured.
Returns
- IAsiBackboneBuilder
The same builder so calls can be chained.
Exceptions
- ArgumentNullException
Thrown when
builderis null.