5 writes to AllowEmptyHosts
Microsoft.AspNetCore.HostFiltering.Tests (5)
HostFilteringMiddlewareTests.cs (2)
51
options.
AllowEmptyHosts
= allowed;
92
options.
AllowEmptyHosts
= allowed;
MiddlewareConfigurationManagerTests.cs (3)
21
AllowEmptyHosts
= true,
47
AllowEmptyHosts
= allowEmptyHosts,
76
AllowEmptyHosts
= false,
6 references to AllowEmptyHosts
Microsoft.AspNetCore.HostFiltering (3)
MiddlewareConfigurationManager.cs (3)
50
return new(true, options.
AllowEmptyHosts
, options.IncludeFailureMessage);
58
return new(false, options.
AllowEmptyHosts
, options.IncludeFailureMessage, allowedHosts.AsReadOnly());
93
return $"{{AllowedHosts = {string.Join("; ", hostFilteringOptions.AllowedHosts)}, AllowEmptyHosts = {hostFilteringOptions.
AllowEmptyHosts
}, IncludeFailureMessage = {hostFilteringOptions.IncludeFailureMessage}}}";
Microsoft.AspNetCore.HostFiltering.Tests (3)
MiddlewareConfigurationManagerTests.cs (3)
33
Assert.Equal(options.
AllowEmptyHosts
, configurationBeforeChange.AllowEmptyHosts);
56
Assert.Equal(newOption.
AllowEmptyHosts
, configurationAfterChange.AllowEmptyHosts);
86
Assert.Equal(options.
AllowEmptyHosts
, result1.AllowEmptyHosts);