16 writes to Host
Aspire.Hosting (1)
ApplicationModel\HostUrl.cs (1)
57uri.Host = options.Value.EnableAspireContainerTunnel? KnownHostNames.DefaultContainerTunnelHostName : dcpInfo?.Containers?.ContainerHostName ?? KnownHostNames.DockerDesktopHostBridge;
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
565Url = new UriBuilder(portUri) { Host = $"{hostPrefix}-inspect{hostSuffix}" }.Uri.ToString(),
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
317uriBuilder.Host = string.Concat("[", ipv6Host, "]");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceMetadataExtension.cs (1)
268result.Host = _newHostName;
Infrastructure.Common (1)
ServiceUtilHelper.cs (1)
496builder.Host = TestProperties.GetProperty(TestProperties.ServiceUri_PropertyName);
Microsoft.AspNetCore.Hosting (1)
GenericHost\GenericWebHostService.cs (1)
174Log.ListeningOnAddress(LifetimeLogger, new UriBuilder(uri) { Host = "localhost" }.ToString().TrimEnd('/'));
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\Utils.cs (1)
16Host = url.Host,
Microsoft.Extensions.ServiceDiscovery (2)
Http\ResolvingHttpDelegatingHandler.cs (2)
70Host = ep.Host, 103Host = host,
Microsoft.Extensions.ServiceDiscovery.Yarp (2)
ServiceDiscoveryDestinationResolver.cs (2)
80uriBuilder.Host = uri.Host; 86healthUriBuilder.Host = uri.Host;
Sockets.BindTests (1)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
214builder.Host = new IPAddress(ip.GetAddressBytes()).ToString(); // Without the scope id.
System.Private.Uri (1)
System\UriBuilder.cs (1)
53Host = hostName;
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
125uriBuilder.Host = string.Concat("[", ipv6Host, "]");
System.ServiceModel.UnixDomainSocket (2)
System\ServiceModel\Channels\UnixDomainSocketChannelFactory.cs (2)
45uriBuilder.Host = null; 52uriBuilder.Host = null;
5 references to Host
Aspire.Hosting (1)
ApplicationModel\HostUrl.cs (1)
42if (uri.Host is "localhost" or "127.0.0.1" or "[::1]")
Aspire.Hosting.DevTunnels (2)
DevTunnelResourceBuilderExtensions.cs (2)
536&& !string.Equals(new UriBuilder(u.Url).Host, "localhost")) is { } tunnelUrl) 544&& string.Equals(new UriBuilder(u.Url).Host, "localhost", StringComparison.OrdinalIgnoreCase)) is { } localhostTunnelUrl)
Sockets.BindTests (1)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
213var ip = IPAddress.Parse(builder.Host);
System.Private.Uri (1)
System\UriBuilder.cs (1)
340string host = Host;