using adas_core.Authentication.Interfaces; using Microsoft.Extensions.DependencyInjection; namespace adas_core.Authentication.RegistrationExtensions; public static class AuthRegistration { public static void AddAuth(this IServiceCollection serviceCollection) { serviceCollection.AddSingleton(); serviceCollection.AddSingleton>(provider => new Lazy(provider.GetRequiredService)); } }