111 references to Port
Aspire.Hosting (5)
Aspire.Hosting.Azure.AppContainers (2)
Aspire.Hosting.Azure.AppService (2)
Aspire.Hosting.Azure.CosmosDB (1)
Aspire.Hosting.Azure.EventHubs (1)
Aspire.Hosting.Azure.Functions (1)
Aspire.Hosting.Azure.Sandboxes (2)
Aspire.Hosting.Azure.ServiceBus (1)
Aspire.Hosting.Azure.Storage (1)
Aspire.Hosting.Azure.Tests (9)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.Docker (1)
Aspire.Hosting.Garnet (1)
Aspire.Hosting.Kafka (2)
Aspire.Hosting.Kubernetes (2)
Aspire.Hosting.Kubernetes.Tests (1)
Aspire.Hosting.Maui (1)
Aspire.Hosting.Milvus (1)
Aspire.Hosting.MongoDB (1)
Aspire.Hosting.MySql (2)
Aspire.Hosting.Nats (1)
Aspire.Hosting.Oracle (1)
Aspire.Hosting.PostgreSQL (2)
Aspire.Hosting.Qdrant (2)
Aspire.Hosting.RabbitMQ (1)
Aspire.Hosting.Radius (2)
Aspire.Hosting.Radius.Tests (5)
Aspire.Hosting.Redis (1)
Aspire.Hosting.Seq (1)
Aspire.Hosting.SqlServer (2)
Aspire.Hosting.Tests (47)
Dcp\DcpExecutorTests.cs (30)
771.WithArgs(c => c.Args.Add(endpoint.Property(EndpointProperty.Port)));
811c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port));
5016Assert.Equal(allocatedPort.ToString(CultureInfo.InvariantCulture), await database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port).GetValueAsync());
5032database.WithEnvironment("PUBLIC_PORT", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port));
5033database.WithEnvironment("PUBLIC_PORT_AGAIN", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port));
10293.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port))
10294.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port));
10300.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port))
10301.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port));
10484c.EnvironmentVariables["EXEC_PORT"] = executable.GetEndpoint("http").Property(EndpointProperty.Port);
10519c.EnvironmentVariables["EXEC_PORT"] = executable.GetEndpoint("http").Property(EndpointProperty.Port);
10560c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port));
10796c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port));
10833.WithEnvironment("EXEC_PORT", executable.GetEndpoint("http").Property(EndpointProperty.Port));
10864.WithEnvironment("EXECUTABLE_PORT", executable.GetEndpoint("http").Property(EndpointProperty.Port));
10897$"{containerEndpoint.Property(EndpointProperty.Scheme)}://{containerEndpoint.Property(EndpointProperty.Host)}:{containerEndpoint.Property(EndpointProperty.Port)}"))
10898.WithEnvironment("HOST_PORT", executable.GetEndpoint("unused").Property(EndpointProperty.Port));
10942.WithEnvironment("TARGET_PORT", targetEndpoint.Property(EndpointProperty.Port));
10986project.GetEndpoint("http", KnownNetworkIdentifiers.DefaultAspireContainerNetwork).Property(EndpointProperty.Port));
11025target.GetEndpoint("http", KnownNetworkIdentifiers.DefaultAspireContainerNetwork).Property(EndpointProperty.Port));
11062executable.GetEndpoint("http", KnownNetworkIdentifiers.DefaultAspireContainerNetwork).Property(EndpointProperty.Port));
11131executable.GetEndpoint("udp", KnownNetworkIdentifiers.DefaultAspireContainerNetwork).Property(EndpointProperty.Port));
11186target.GetEndpoint("http", KnownNetworkIdentifiers.DefaultAspireContainerNetwork).Property(EndpointProperty.Port));
11227context.EnvironmentVariables["CONTAINER_PORT"] = containerEndpoint.Property(EndpointProperty.Port);
11276executable.GetEndpoint("http", KnownNetworkIdentifiers.DefaultAspireContainerNetwork).Property(EndpointProperty.Port));
11316.WithEnvironment("TARGET_PORT", containerEndpoint.Property(EndpointProperty.Port));
11318.WithEnvironment("TARGET_PORT", target.GetEndpoint("http").Property(EndpointProperty.Port));
11374.WithEnvironment("EXEC_A_PORT", executableA.GetEndpoint("http").Property(EndpointProperty.Port));
11380.WithEnvironment("EXEC_B_PORT", executableB.GetEndpoint("http").Property(EndpointProperty.Port))
11437.WithEnvironment("UPSTREAM_PORT", upstreamExecutable.GetEndpoint("http").Property(EndpointProperty.Port))
EndpointReferenceTests.cs (6)
127var portExpr = endpointRef.Property(EndpointProperty.Port);
227var expr3 = endpointRef.Property(EndpointProperty.Port);
354[InlineData(EndpointProperty.Port, ResourceKind.Host, ResourceKind.Host, "1234")]
355[InlineData(EndpointProperty.Port, ResourceKind.Host, ResourceKind.Container, "1234")]
356[InlineData(EndpointProperty.Port, ResourceKind.Container, ResourceKind.Host, "1234")]
357[InlineData(EndpointProperty.Port, ResourceKind.Container, ResourceKind.Container, "4567")]
Aspire.Hosting.Valkey (1)
Aspire.Hosting.Yarp (1)
AspireWithNode.AppHost (1)
Stress.AppHost (5)