Ejemplo n.º 1
0
        private IFiasSettings FiasServiceSettingsCreate()
        {
            if (settings != null)
            {
                return(settings);
            }

            settings = new FiasSettings();
            Configuration.GetSection("FiasService").Bind(settings);
            return(settings);
        }
Ejemplo n.º 2
0
 public Startup(IConfiguration configuration)
 {
     Configuration    = configuration;
     connectionString = Configuration.GetConnectionString("DefaultConnection");
     settings         = FiasServiceSettingsCreate();
 }