コード例 #1
0
        public BolsaController(IConfiguration myConfiguration)
        {
            _myConfiguration = myConfiguration;

            ConfigWeb_ = new ConfigWeb();


            _myConfiguration.GetSection("ConfigWeb").Bind(ConfigWeb_);

            ConnectionStringsX ConnectionStrings_ = new ConnectionStringsX();

            _myConfiguration.GetSection("ConnectionStringsX").Bind(ConnectionStrings_);
            ConfigWeb_.ConnectionStrings_ = ConnectionStrings_;

            AppSettings AppSettings_ = new AppSettings();

            _myConfiguration.GetSection("AppSettings").Bind(AppSettings_);
            ConfigWeb_.AppSettings_ = AppSettings_;
        }
コード例 #2
0
        public LoginController(IConfiguration myConfiguration
                               //, IHttpContextAccessor httpContextAccessor
                               )
        {
            //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
            _myConfiguration = myConfiguration;
            //  _httpContextAccessor = httpContextAccessor;
            //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

            ConfigWeb_ = new ConfigWeb();

            _myConfiguration.GetSection("ConfigWeb").Bind(ConfigWeb_);

            ConnectionStringsX ConnectionStrings_ = new ConnectionStringsX();

            _myConfiguration.GetSection("ConnectionStringsX").Bind(ConnectionStrings_);
            ConfigWeb_.ConnectionStrings_ = ConnectionStrings_;

            AppSettings AppSettings_ = new AppSettings();

            _myConfiguration.GetSection("AppSettings").Bind(AppSettings_);
            ConfigWeb_.AppSettings_ = AppSettings_;
        }
コード例 #3
0
        public ConsultasController(IConfiguration myConfiguration, IConnectHttpClient _IConnectHttpClient_)
        {
            //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
            _myConfiguration = myConfiguration;

            IConnectHttpClient_ = _IConnectHttpClient_;

            //  _httpContextAccessor = httpContextAccessor;
            //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

            ConfigWeb_ = new ConfigWeb();

            _myConfiguration.GetSection("ConfigWeb").Bind(ConfigWeb_);

            ConnectionStringsX ConnectionStrings_ = new ConnectionStringsX();

            _myConfiguration.GetSection("ConnectionStringsX").Bind(ConnectionStrings_);
            ConfigWeb_.ConnectionStrings_ = ConnectionStrings_;

            AppSettings AppSettings_ = new AppSettings();

            _myConfiguration.GetSection("AppSettings").Bind(AppSettings_);
            ConfigWeb_.AppSettings_ = AppSettings_;
        }