1 override of Features
Microsoft.Extensions.ServiceDiscovery.Abstractions (1)
Internal\ServiceEndpointImpl.cs (1)
13public override IFeatureCollection Features { get; } = features ?? new FeatureCollection();
19 references to Features
Microsoft.Extensions.ServiceDiscovery (6)
Configuration\ConfigurationServiceEndpointProvider.cs (2)
232serviceEndpoint.Features.Set<IServiceEndpointProvider>(this); 235serviceEndpoint.Features.Set<IHostNameFeature>(this);
Http\ResolvingHttpClientHandler.cs (1)
27request.Headers.Host ??= result.Features.Get<IHostNameFeature>()?.HostName;
Http\ResolvingHttpDelegatingHandler.cs (1)
48request.Headers.Host ??= result.Features.Get<IHostNameFeature>()?.HostName;
PassThrough\PassThroughServiceEndpointProvider.cs (1)
20ep.Features.Set<IServiceEndpointProvider>(this);
ServiceEndpointWatcher.Log.cs (1)
30if (ep.Features.Get<IServiceEndpointProvider>() is { } provider)
Microsoft.Extensions.ServiceDiscovery.Dns (4)
DnsServiceEndpointProvider.cs (2)
60serviceEndpoint.Features.Set<IServiceEndpointProvider>(this); 63serviceEndpoint.Features.Set<IHostNameFeature>(this);
DnsSrvServiceEndpointProvider.cs (2)
70serviceEndpoint.Features.Set<IServiceEndpointProvider>(this); 73serviceEndpoint.Features.Set<IHostNameFeature>(this);
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (3)
DnsSrvServiceEndpointResolverTests.cs (3)
76var hostNameFeature = ep.Features.Get<IHostNameFeature>(); 157var hostNameFeature = ep.Features.Get<IHostNameFeature>(); 171var hostNameFeature = ep.Features.Get<IHostNameFeature>();
Microsoft.Extensions.ServiceDiscovery.Tests (6)
ConfigurationServiceEndpointResolverTests.cs (6)
48var hostNameFeature = ep.Features.Get<IHostNameFeature>(); 176var hostNameFeature = ep.Features.Get<IHostNameFeature>(); 308var hostNameFeature = ep.Features.Get<IHostNameFeature>(); 330var hostNameFeature = ep.Features.Get<IHostNameFeature>(); 376var hostNameFeature = ep.Features.Get<IHostNameFeature>(); 425var hostNameFeature = ep.Features.Get<IHostNameFeature>();