using DotBased.ASP.Authentication.Configuration; using DotBased.ASP.Authentication.Repositories; using Microsoft.Extensions.DependencyInjection; namespace DotBased.ASP.Authentication; public static class BasedAuthenticationExtensions { public static BasedAuthenticationBuilder AddBasedAuthentication(this IServiceCollection services, Action? configurationAction) { /* * Add services * - Validators * - Managers * - Services */ if (configurationAction != null) { services.Configure(configurationAction); } return new BasedAuthenticationBuilder(typeof(BasedAuthenticationBuilder)); } public static BasedAuthenticationBuilder AddRepository(this BasedAuthenticationBuilder builder) { return builder; } public static BasedAuthenticationBuilder SeedData(this BasedAuthenticationBuilder builder, Action seeder) where TRepository : RepositoryBase { return builder; } }