30 references to Port
Aspire.Hosting (6)
ApplicationModel\EndpointReference.cs (2)
55EndpointProperty.Port => Binding("port"), 178EndpointProperty.Port => new(Endpoint.Port.ToString(CultureInfo.InvariantCulture)),
ApplicationModel\ExpressionResolver.cs (3)
21(EndpointProperty.Port, true) => await endpointReference.Property(EndpointProperty.TargetPort).GetValueAsync(cancellationToken).ConfigureAwait(false), 27await EvalEndpointAsync(endpointReference, EndpointProperty.Port).ConfigureAwait(false)), 30await EvalEndpointAsync(endpointReference, EndpointProperty.Port).ConfigureAwait(false)),
ProjectResourceBuilderExtensions.cs (1)
760context.EnvironmentVariables["ASPNETCORE_HTTPS_PORT"] = e.Property(EndpointProperty.Port);
Aspire.Hosting.Azure.AppContainers (1)
BaseContainerAppContext.cs (1)
199EndpointProperty.Port => port.ToString(CultureInfo.InvariantCulture),
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
344EndpointProperty.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.Kusto (1)
AzureKustoClusterResource.cs (1)
35return ReferenceExpression.Create($"{endpoint.Property(EndpointProperty.Scheme)}://{endpoint.Property(EndpointProperty.Host)}:{endpoint.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 (3)
AzureContainerAppsTests.cs (2)
309context.EnvironmentVariables["PORT"] = httpEp.Property(EndpointProperty.Port); 386context.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.Kubernetes (1)
KubernetesResource.cs (1)
448EndpointProperty.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)
57$"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 (9)
ExpressionResolverTests.cs (6)
222{ "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)}/;") }, 226{ "OnlyPort", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};") }, 228{ "PortBeforeHost", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};Host={Endpoint1.Property(EndpointProperty.Host)};") }, 229{ "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 (3)
236.WithEnvironment("PORT", $"{endpoint.Property(EndpointProperty.Port)}") 284.WithEnvironment("URL", $"{endpoint.Property(EndpointProperty.Host)}:{endpoint.Property(EndpointProperty.Port)}"); 441var portProperty = endpoint.Property(EndpointProperty.Port);
AspireWithNode.AppHost (1)
NodeHostingExtensions.cs (1)
26context.EnvironmentVariables["HTTPS_REDIRECT_PORT"] = ReferenceExpression.Create($"{httpsEndpoint.Property(EndpointProperty.Port)}");
Stress.AppHost (1)
Program.cs (1)
45.WithEnvironment("PORT", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Port)}")