Esempio n. 1
0
        public static CoreOption Create(IConfiguration configuration)
        {
            var option = new CoreOption();

            configuration.GetSection("HelloJkw").Bind(option);
            return(option);
        }
Esempio n. 2
0
        public Startup(IConfiguration configuration)
        {
            Configuration = configuration;

            _coreOption = CoreOption.Create(Configuration);
        }