110 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.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)
729.WithArgs(c => c.Args.Add(endpoint.Property(EndpointProperty.Port)));
769c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port));
4527Assert.Equal(allocatedPort.ToString(CultureInfo.InvariantCulture), await database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port).GetValueAsync());
4543database.WithEnvironment("PUBLIC_PORT", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port));
4544database.WithEnvironment("PUBLIC_PORT_AGAIN", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port));
9609.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port))
9610.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port));
9616.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port))
9617.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port));
9795c.EnvironmentVariables["EXEC_PORT"] = executable.GetEndpoint("http").Property(EndpointProperty.Port);
9830c.EnvironmentVariables["EXEC_PORT"] = executable.GetEndpoint("http").Property(EndpointProperty.Port);
9871c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port));
10107c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port));
10144.WithEnvironment("EXEC_PORT", executable.GetEndpoint("http").Property(EndpointProperty.Port));
10175.WithEnvironment("EXECUTABLE_PORT", executable.GetEndpoint("http").Property(EndpointProperty.Port));
10208$"{containerEndpoint.Property(EndpointProperty.Scheme)}://{containerEndpoint.Property(EndpointProperty.Host)}:{containerEndpoint.Property(EndpointProperty.Port)}"))
10209.WithEnvironment("HOST_PORT", executable.GetEndpoint("unused").Property(EndpointProperty.Port));
10253.WithEnvironment("TARGET_PORT", targetEndpoint.Property(EndpointProperty.Port));
10297project.GetEndpoint("http", KnownNetworkIdentifiers.DefaultAspireContainerNetwork).Property(EndpointProperty.Port));
10336target.GetEndpoint("http", KnownNetworkIdentifiers.DefaultAspireContainerNetwork).Property(EndpointProperty.Port));
10373executable.GetEndpoint("http", KnownNetworkIdentifiers.DefaultAspireContainerNetwork).Property(EndpointProperty.Port));
10442executable.GetEndpoint("udp", KnownNetworkIdentifiers.DefaultAspireContainerNetwork).Property(EndpointProperty.Port));
10497target.GetEndpoint("http", KnownNetworkIdentifiers.DefaultAspireContainerNetwork).Property(EndpointProperty.Port));
10538context.EnvironmentVariables["CONTAINER_PORT"] = containerEndpoint.Property(EndpointProperty.Port);
10587executable.GetEndpoint("http", KnownNetworkIdentifiers.DefaultAspireContainerNetwork).Property(EndpointProperty.Port));
10627.WithEnvironment("TARGET_PORT", containerEndpoint.Property(EndpointProperty.Port));
10629.WithEnvironment("TARGET_PORT", target.GetEndpoint("http").Property(EndpointProperty.Port));
10685.WithEnvironment("EXEC_A_PORT", executableA.GetEndpoint("http").Property(EndpointProperty.Port));
10691.WithEnvironment("EXEC_B_PORT", executableB.GetEndpoint("http").Property(EndpointProperty.Port))
10748.WithEnvironment("UPSTREAM_PORT", upstreamExecutable.GetEndpoint("http").Property(EndpointProperty.Port))
EndpointReferenceTests.cs (6)
91var portExpr = endpointRef.Property(EndpointProperty.Port);
191var expr3 = endpointRef.Property(EndpointProperty.Port);
318[InlineData(EndpointProperty.Port, ResourceKind.Host, ResourceKind.Host, "1234")]
319[InlineData(EndpointProperty.Port, ResourceKind.Host, ResourceKind.Container, "1234")]
320[InlineData(EndpointProperty.Port, ResourceKind.Container, ResourceKind.Host, "1234")]
321[InlineData(EndpointProperty.Port, ResourceKind.Container, ResourceKind.Container, "4567")]
Aspire.Hosting.Valkey (1)
Aspire.Hosting.Yarp (1)
AspireWithNode.AppHost (1)
Stress.AppHost (5)