public UserDataProvider(IOptions <ConfidentialInfo> myConfiguration, IConfiguration configuration) { _confidentialInfo = myConfiguration.Value; }
public AdminSignController(SystemContext context, IOptions <ConfidentialInfo> setting) { _context = context; confidentialInfo = setting.Value; }
public HomeController(SystemContext context, IHostingEnvironment env, IOptions <ConfidentialInfo> setting) { _context = context; _env = env; confidentialInfo = setting.Value; }