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