1 write to Host
Microsoft.AspNetCore.Http (1)
BindingAddress.cs (1)
18Host = host;
39 references to Host
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
877if (!IsAnyIPHost(BindingAddress.Host)) 879return BindingAddress.Scheme.ToLowerInvariant() + Uri.SchemeDelimiter + BindingAddress.Host.ToLowerInvariant() + ":" + EndPoint.Port.ToString(CultureInfo.InvariantCulture);
Aspire.Hosting (1)
ProjectResourceBuilderExtensions.cs (1)
453e.TargetHost = bindingAddress.Host;
http2cat (3)
src\Shared\Http2cat\Http2CatHostedService.cs (3)
61if (!IPAddress.TryParse(address.Host, out var ip)) 63ip = Dns.GetHostEntry(address.Host).AddressList.First(); 98TargetHost = address.Host,
IIS.FunctionalTests (3)
src\Shared\Http2cat\Http2CatHostedService.cs (3)
61if (!IPAddress.TryParse(address.Host, out var ip)) 63ip = Dns.GetHostEntry(address.Host).AddressList.First(); 98TargetHost = address.Host,
IIS.LongTests (3)
src\Shared\Http2cat\Http2CatHostedService.cs (3)
61if (!IPAddress.TryParse(address.Host, out var ip)) 63ip = Dns.GetHostEntry(address.Host).AddressList.First(); 98TargetHost = address.Host,
IIS.NewHandler.FunctionalTests (3)
src\Shared\Http2cat\Http2CatHostedService.cs (3)
61if (!IPAddress.TryParse(address.Host, out var ip)) 63ip = Dns.GetHostEntry(address.Host).AddressList.First(); 98TargetHost = address.Host,
IIS.NewShim.FunctionalTests (3)
src\Shared\Http2cat\Http2CatHostedService.cs (3)
61if (!IPAddress.TryParse(address.Host, out var ip)) 63ip = Dns.GetHostEntry(address.Host).AddressList.First(); 98TargetHost = address.Host,
IISExpress.FunctionalTests (3)
src\Shared\Http2cat\Http2CatHostedService.cs (3)
61if (!IPAddress.TryParse(address.Host, out var ip)) 63ip = Dns.GetHostEntry(address.Host).AddressList.First(); 98TargetHost = address.Host,
Microsoft.AspNetCore.Http (10)
BindingAddress.cs (10)
56/// Returns <see langword="true"/> if <see cref="Host"/> starts with <c>unix://</c> prefix. 59public bool IsUnixPipe => Host.StartsWith(UnixPipeHostPrefix, StringComparison.Ordinal); 64/// Returns <see langword="true"/> if <see cref="Host"/> starts with <c>pipe:/</c> prefix. 67public bool IsNamedPipe => Host.StartsWith(NamedPipeHostPrefix, StringComparison.Ordinal); 81return GetUnixPipePath(Host); 97return GetNamedPipeName(Host); 119return Scheme.ToLowerInvariant() + Uri.SchemeDelimiter + Host.ToLowerInvariant(); 123return Scheme.ToLowerInvariant() + Uri.SchemeDelimiter + Host.ToLowerInvariant() + ":" + Port.ToString(CultureInfo.InvariantCulture) + PathBase; 142&& string.Equals(Host, other.Host, StringComparison.OrdinalIgnoreCase)
Microsoft.AspNetCore.Http.Tests (3)
BindingAddressTests.cs (3)
66Assert.Equal(host, serverAddress.Host); 85Assert.Equal(host, serverAddress.Host); 103Assert.Equal(host, serverAddress.Host);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
src\Shared\Http2cat\Http2CatHostedService.cs (3)
61if (!IPAddress.TryParse(address.Host, out var ip)) 63ip = Dns.GetHostEntry(address.Host).AddressList.First(); 98TargetHost = address.Host,
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\AddressBinder.cs (2)
76if (!IPAddress.TryParse(address.Host, out var ip)) 128else if (string.Equals(parsedAddress.Host, "localhost", StringComparison.OrdinalIgnoreCase))