1 write to Config
HostFilteringSample (1)
Startup.cs (1)
15
Config
= config;
2 references to Config
HostFilteringSample (2)
Startup.cs (2)
31
var hosts =
Config
["AllowedHosts"]?.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
37
services.AddSingleton<IOptionsChangeTokenSource<HostFilteringOptions>>(new ConfigurationChangeTokenSource<HostFilteringOptions>(
Config
));