19 references to IPV4Host
Aspire.Hosting (3)
ApplicationModel\EndpointReference.cs (3)
98EndpointProperty.Host or EndpointProperty.IPV4Host => Binding("host"), 303EndpointProperty.IPV4Host when networkContext == KnownNetworkIdentifiers.LocalhostNetwork => "127.0.0.1", 330EndpointProperty.IPV4Host => new(allocatedEndpoint.Address),
Aspire.Hosting.Azure.AppContainers (1)
BaseContainerAppContext.cs (1)
206EndpointProperty.Host or EndpointProperty.IPV4Host => GetHostValue(),
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
752EndpointProperty.IPV4Host => BicepFunction.Interpolate($"{mapping.Host}.azurewebsites.net"),
Aspire.Hosting.Azure.CosmosDB (2)
AzureCosmosDBEmulatorConnectionString.cs (1)
14: ReferenceExpression.Create($"AccountKey={CosmosConstants.EmulatorAccountKey};AccountEndpoint=https://{endpoint.Property(EndpointProperty.IPV4Host)}:{endpoint.Property(EndpointProperty.Port)};DisableServerCertificateValidation=True;");
AzureCosmosDBResource.cs (1)
103ReferenceExpression.Create($"https://{EmulatorEndpoint.Property(EndpointProperty.IPV4Host)}:{EmulatorEndpoint.Property(EndpointProperty.Port)}") :
Aspire.Hosting.Azure.Storage (1)
AzureStorageEmulatorConnectionString.cs (1)
35builder.Append($"{key}={endpoint.Property(EndpointProperty.Scheme)}://{endpoint.Property(EndpointProperty.IPV4Host)}:{endpoint.Property(EndpointProperty.Port)}/devstoreaccount1;");
Aspire.Hosting.Azure.Tests (1)
src\Aspire.Hosting.Azure.Storage\AzureStorageEmulatorConnectionString.cs (1)
35builder.Append($"{key}={endpoint.Property(EndpointProperty.Scheme)}://{endpoint.Property(EndpointProperty.IPV4Host)}:{endpoint.Property(EndpointProperty.Port)}/devstoreaccount1;");
Aspire.Hosting.Docker (1)
DockerComposeServiceResourceExtensions.cs (1)
93EndpointProperty.Host or EndpointProperty.IPV4Host => GetHostValue(),
Aspire.Hosting.Kubernetes (1)
KubernetesResource.cs (1)
465EndpointProperty.Host or EndpointProperty.IPV4Host => GetHostValue(),
Aspire.Hosting.SqlServer (1)
SqlServerServerResource.cs (1)
49$"Server={PrimaryEndpoint.Property(EndpointProperty.IPV4Host)},{PrimaryEndpoint.Property(EndpointProperty.Port)};User ID={DefaultUserName};Password={PasswordParameter};TrustServerCertificate=true");
Aspire.Hosting.Tests (7)
EndpointReferenceTests.cs (5)
122var ipv4Expr = endpointRef.Property(EndpointProperty.IPV4Host); 297[InlineData(EndpointProperty.IPV4Host, ResourceKind.Host, ResourceKind.Host, "127.0.0.1")] 298[InlineData(EndpointProperty.IPV4Host, ResourceKind.Host, ResourceKind.Container, "127.0.0.1")] 299[InlineData(EndpointProperty.IPV4Host, ResourceKind.Container, ResourceKind.Host, "host.docker.internal")] 300[InlineData(EndpointProperty.IPV4Host, ResourceKind.Container, ResourceKind.Container, "destination.dev.internal")]
ExpressionResolverTests.cs (2)
322{ "TwoFullEndpoints", ReferenceExpression.Create($"Test1={Endpoint1.Property(EndpointProperty.Scheme)}://{Endpoint1.Property(EndpointProperty.IPV4Host)}:{Endpoint1.Property(EndpointProperty.Port)}/;Test2={Endpoint2.Property(EndpointProperty.Scheme)}://{Endpoint2.Property(EndpointProperty.Host)}:{Endpoint2.Property(EndpointProperty.Port)}/;") }, 329{ "FullAndPartial", ReferenceExpression.Create($"Test1={Endpoint1.Property(EndpointProperty.Scheme)}://{Endpoint1.Property(EndpointProperty.IPV4Host)}:{Endpoint1.Property(EndpointProperty.Port)}/;Test2={Endpoint2.Property(EndpointProperty.Scheme)}://localhost:{Endpoint2.Property(EndpointProperty.Port)}/;") },