using Microsoft.Extensions.DependencyInjection; namespace GB5Shared.Authorization { public static class MenuRightsServiceCollectionExtensions { /// /// Registers the MROLEVSMENU-backed [MenuRights] authorization gate consumed by /// GB5Shared.FastEndPoint.BaseEndpoint. Call once per host/SL project that has endpoints /// decorated with [MenuRights(...)]. /// public static IServiceCollection AddMenuRightsAuthorization(this IServiceCollection services) { services.AddScoped(); services.AddScoped(); return services; } } }