Ejemplo n.º 1
0
        public static IServiceCollection AddConfiguracao <TSettings>(this IServiceCollection services,
                                                                     IConfiguration configuration) where TSettings : class
        {
            GerenciadorConfiguracao <TSettings> .Load(configuration);

            services.Configure <TSettings>(configuration.Bind);

            return(services);
        }