1 implementation of IHostMetadata
Microsoft.AspNetCore.Routing (1)
HostAttribute.cs (1)
15
public sealed class HostAttribute : Attribute,
IHostMetadata
12 references to IHostMetadata
Microsoft.AspNetCore.Routing (7)
Matching\HostMatcherPolicy.cs (7)
50
var hosts = e.Metadata.GetMetadata<
IHostMetadata
>()?.Hosts;
83
var hosts = candidates[i].Endpoint.Metadata.GetMetadata<
IHostMetadata
>()?.Hosts;
275
var
hostMetadata = endpoint.Metadata.GetMetadata<
IHostMetadata
>();
354
private sealed class HostMetadataEndpointComparer : EndpointMetadataComparer<
IHostMetadata
>
356
protected override int CompareMetadata(
IHostMetadata
? x,
IHostMetadata
? y)
Microsoft.AspNetCore.Routing.Tests (5)
Builder\RoutingEndpointConventionBuilderExtensionsTest.cs (4)
44
var
metadata = endpoint.Metadata.GetMetadata<
IHostMetadata
>();
115
var
hosts = endpoint.Metadata.GetMetadata<
IHostMetadata
>();
Matching\HostMatcherPolicyTest.cs (1)
258
private static RouteEndpoint CreateEndpoint(string template,
IHostMetadata
hostMetadata, params object[] more)