Table of Contents

Class AccessLevelServiceCollectionExtensions

Namespace
Tharga.Team.Service
Assembly
Tharga.Team.Service.dll

Extension methods for registering services with automatic access level enforcement.

public static class AccessLevelServiceCollectionExtensions
Inheritance
AccessLevelServiceCollectionExtensions
Inherited Members

Methods

AddScopedWithAccessLevel<TService, TImplementation>(IServiceCollection)

Registers a scoped service wrapped in an AccessLevelProxy<T> that enforces RequireAccessLevelAttribute on every method call. Logs audit entries when IAuditLogger is available.

public static IServiceCollection AddScopedWithAccessLevel<TService, TImplementation>(this IServiceCollection services) where TService : class where TImplementation : class, TService

Parameters

services IServiceCollection

Returns

IServiceCollection

Type Parameters

TService
TImplementation