public static void AddConfiguration(this IServiceCollection service) { DBConfiguration.Register(service); RepositoriesDI.Register(service); ServicesDI.Register(service); CorsConfiguration.RegisterCors(service); SwaggerConfiguration.RegisterSwagger(service); }
public static void AddConfiguration(this IServiceCollection service, IConfiguration configuration) { RepositoriesDI.Register(service); ServicesDI.Register(service); SwaggerConfiguration.RegisterSwagger(service); SerilogConfiguration.CreateLogger(); service.AddBindConfiguration(configuration); }