2 instantiations of MiddlewareConfiguration
Microsoft.AspNetCore.HostFiltering (2)
MiddlewareConfigurationManager.cs (2)
50
return
new
(true, options.AllowEmptyHosts, options.IncludeFailureMessage);
58
return
new
(false, options.AllowEmptyHosts, options.IncludeFailureMessage, allowedHosts.AsReadOnly());
12 references to MiddlewareConfiguration
Microsoft.AspNetCore.HostFiltering (8)
HostFilteringMiddleware.cs (4)
55
var
middlewareConfiguration = _middlewareConfigurationManager.GetLatestMiddlewareConfiguration();
66
private static Task HostValidationFailed(HttpContext context,
MiddlewareConfiguration
middlewareConfiguration)
82
private bool CheckHost(HttpContext context,
MiddlewareConfiguration
middlewareConfiguration)
115
private bool IsEmptyHostAllowed(HttpContext context,
MiddlewareConfiguration
middlewareConfiguration)
MiddlewareConfigurationManager.cs (4)
17
private
MiddlewareConfiguration
_middlewareConfiguration;
26
internal
MiddlewareConfiguration
GetLatestMiddlewareConfiguration()
28
var
config = _middlewareConfiguration;
38
private
MiddlewareConfiguration
ConfigureMiddleware(HostFilteringOptions options)
Microsoft.AspNetCore.HostFiltering.Tests (4)
MiddlewareConfigurationManagerTests.cs (4)
29
var
configurationBeforeChange = sut.GetLatestMiddlewareConfiguration();
53
var
configurationAfterChange = sut.GetLatestMiddlewareConfiguration();
84
var
result1 = sut.GetLatestMiddlewareConfiguration();
90
var
result2 = sut.GetLatestMiddlewareConfiguration();