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