示例#1
0
        public static CoreOption Create(IConfiguration configuration)
        {
            var option = new CoreOption();

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

            _coreOption = CoreOption.Create(Configuration);
        }