46 references to Port
Aspire.Hosting (6)
ApplicationModel\EndpointReference.cs (2)
69EndpointProperty.Port => Binding("port"), 208EndpointProperty.Port => new(allocatedEndpoint.Port.ToString(CultureInfo.InvariantCulture)),
ApplicationModel\ExpressionResolver.cs (3)
22(EndpointProperty.Port, true) => await endpointReference.Property(EndpointProperty.TargetPort).GetValueAsync(cancellationToken).ConfigureAwait(false), 28await EvalEndpointAsync(endpointReference, EndpointProperty.Port).ConfigureAwait(false)), 31await EvalEndpointAsync(endpointReference, EndpointProperty.Port).ConfigureAwait(false)),
ProjectResourceBuilderExtensions.cs (1)
915context.EnvironmentVariables["ASPNETCORE_HTTPS_PORT"] = e.Property(EndpointProperty.Port);
Aspire.Hosting.Azure.AppContainers (1)
BaseContainerAppContext.cs (1)
207EndpointProperty.Port => port.ToString(CultureInfo.InvariantCulture),
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
417EndpointProperty.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)
313context.EnvironmentVariables["PORT"] = httpEp.Property(EndpointProperty.Port); 390context.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.Garnet (1)
GarnetResource.cs (1)
39public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.Kafka (1)
KafkaServerResource.cs (1)
36public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.Kubernetes (1)
KubernetesResource.cs (1)
448EndpointProperty.Port => port,
Aspire.Hosting.Milvus (1)
MilvusServerResource.cs (1)
46public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.MongoDB (1)
MongoDBServerResource.cs (1)
44public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.MySql (2)
MySqlServerResource.cs (2)
43public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port); 55$"Server={PrimaryEndpoint.Property(EndpointProperty.Host)};Port={PrimaryEndpoint.Property(EndpointProperty.Port)};User ID={DefaultUserName};Password={PasswordParameter}");
Aspire.Hosting.Nats (1)
NatsServerResource.cs (1)
43public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.Oracle (1)
OracleDatabaseServerResource.cs (1)
40public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.PostgreSQL (2)
PostgresServerResource.cs (2)
57$"Host={PrimaryEndpoint.Property(EndpointProperty.Host)};Port={PrimaryEndpoint.Property(EndpointProperty.Port)};Username={UserNameReference};Password={PasswordParameter}"); 113public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.Qdrant (2)
QdrantServerResource.cs (2)
46public EndpointReferenceExpression GrpcPort => PrimaryEndpoint.Property(EndpointProperty.Port); 61public EndpointReferenceExpression HttpPort => HttpEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.RabbitMQ (1)
RabbitMQServerResource.cs (1)
49public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.Redis (1)
RedisResource.cs (1)
42public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.Seq (1)
SeqResource.cs (1)
29public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.SqlServer (2)
SqlServerServerResource.cs (2)
40public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port); 49$"Server={PrimaryEndpoint.Property(EndpointProperty.IPV4Host)},{PrimaryEndpoint.Property(EndpointProperty.Port)};User ID={DefaultUserName};Password={PasswordParameter};TrustServerCertificate=true");
Aspire.Hosting.Tests (11)
EndpointReferenceTests.cs (2)
89var portExpr = endpointRef.Property(EndpointProperty.Port); 189var expr3 = endpointRef.Property(EndpointProperty.Port);
ExpressionResolverTests.cs (6)
229{ "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)}/;") }, 233{ "OnlyPort", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};") }, 235{ "PortBeforeHost", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};Host={Endpoint1.Property(EndpointProperty.Host)};") }, 236{ "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);
Aspire.Hosting.Valkey (1)
ValkeyResource.cs (1)
44public EndpointReferenceExpression Port => PrimaryEndpoint.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)}")