29 references to Port
Aspire.Hosting (7)
ApplicationModel\EndpointReference.cs (2)
55EndpointProperty.Port => Binding("port"), 178EndpointProperty.Port => new(Endpoint.Port.ToString(CultureInfo.InvariantCulture)),
ApplicationModel\ExpressionResolver.cs (4)
43else if (property == EndpointProperty.Port) 67(EndpointProperty.Port, true, true) => await endpointReference.Property(EndpointProperty.TargetPort).GetValueAsync(cancellationToken).ConfigureAwait(false), 73await EvalEndpointAsync(endpointReference, EndpointProperty.Port).ConfigureAwait(false)), 76await EvalEndpointAsync(endpointReference, EndpointProperty.Port).ConfigureAwait(false)),
ProjectResourceBuilderExtensions.cs (1)
757context.EnvironmentVariables["ASPNETCORE_HTTPS_PORT"] = e.Property(EndpointProperty.Port);
Aspire.Hosting.Azure.AppContainers (1)
ContainerAppContext.cs (1)
475EndpointProperty.Port => port.ToString(CultureInfo.InvariantCulture),
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
326EndpointProperty.Port => mapping.Port.ToString(CultureInfo.InvariantCulture),
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBEmulatorConnectionString.cs (1)
14: ReferenceExpression.Create($"AccountKey={CosmosConstants.EmulatorAccountKey};AccountEndpoint=https://{endpoint.Property(EndpointProperty.IPV4Host)}:{endpoint.Property(EndpointProperty.Port)};DisableServerCertificateValidation=True;");
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 (3)
AzureContainerAppsTests.cs (2)
308context.EnvironmentVariables["PORT"] = httpEp.Property(EndpointProperty.Port); 385context.EnvironmentVariables["PORT"] = httpEp.Property(EndpointProperty.Port);
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)
94EndpointProperty.Port => mapping.InternalPort,
Aspire.Hosting.Kafka (1)
KafkaBuilderExtensions.cs (1)
220? ReferenceExpression.Create($"PLAINTEXT://localhost:29092,PLAINTEXT_HOST://localhost:{primaryEndpoint.Property(EndpointProperty.Port)},PLAINTEXT_INTERNAL://{resource.Name}:{internalEndpoint.Property(EndpointProperty.TargetPort)}")
Aspire.Hosting.Kubernetes (1)
KubernetesServiceResourceExtensions.cs (1)
104EndpointProperty.Port => port,
Aspire.Hosting.MySql (1)
MySqlServerResource.cs (1)
44$"Server={PrimaryEndpoint.Property(EndpointProperty.Host)};Port={PrimaryEndpoint.Property(EndpointProperty.Port)};User ID=root;Password={PasswordParameter}");
Aspire.Hosting.PostgreSQL (1)
PostgresServerResource.cs (1)
51$"Host={PrimaryEndpoint.Property(EndpointProperty.Host)};Port={PrimaryEndpoint.Property(EndpointProperty.Port)};Username={UserNameReference};Password={PasswordParameter}");
Aspire.Hosting.SqlServer (1)
SqlServerServerResource.cs (1)
38$"Server={PrimaryEndpoint.Property(EndpointProperty.IPV4Host)},{PrimaryEndpoint.Property(EndpointProperty.Port)};User ID=sa;Password={PasswordParameter};TrustServerCertificate=true");
Aspire.Hosting.Tests (8)
ExpressionResolverTests.cs (6)
223{ "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)}/;") }, 227{ "OnlyPort", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};") }, 229{ "PortBeforeHost", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};Host={Endpoint1.Property(EndpointProperty.Host)};") }, 230{ "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)}/;") },
WithEnvironmentTests.cs (2)
237.WithEnvironment("PORT", $"{endpoint.Property(EndpointProperty.Port)}") 285.WithEnvironment("URL", $"{endpoint.Property(EndpointProperty.Host)}:{endpoint.Property(EndpointProperty.Port)}");
Stress.AppHost (1)
Program.cs (1)
37.WithEnvironment("PORT", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Port)}")