1 implementation of Hosts
Microsoft.AspNetCore.Routing (1)
HostAttribute.cs (1)
49
public IReadOnlyList<string>
Hosts
{ get; }
8 references to Hosts
Microsoft.AspNetCore.Routing (5)
Matching\HostMatcherPolicy.cs (5)
50
var hosts = e.Metadata.GetMetadata<IHostMetadata>()?.
Hosts
;
83
var hosts = candidates[i].Endpoint.Metadata.GetMetadata<IHostMetadata>()?.
Hosts
;
278
foreach (var host in hostMetadata.
Hosts
)
360
x?.
Hosts
.Count > 0 ? x : null,
361
y?.
Hosts
.Count > 0 ? y : null);
Microsoft.AspNetCore.Routing.Tests (3)
Builder\RoutingEndpointConventionBuilderExtensionsTest.cs (2)
46
Assert.Equal(new[] { "www.example.com", "example.com" }, metadata.
Hosts
);
117
Assert.Equal(new[] { "www.example.com", "example.com" }, hosts.
Hosts
);
Matching\HostMatcherPolicyTest.cs (1)
276
$"test: {template} - {string.Join(", ", hostMetadata?.
Hosts
?? Array.Empty<string>())}");