85 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.ServiceBus (1)
Aspire.Hosting.Azure.Storage (1)
Aspire.Hosting.Azure.Tests (5)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.Docker (1)
Aspire.Hosting.Garnet (1)
Aspire.Hosting.Kafka (2)
Aspire.Hosting.Kubernetes (2)
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 (1)
Aspire.Hosting.Radius.Tests (1)
Aspire.Hosting.Redis (1)
Aspire.Hosting.Seq (1)
Aspire.Hosting.SqlServer (2)
Aspire.Hosting.Tests (34)
Dcp\DcpExecutorTests.cs (17)
376.WithArgs(c => c.Args.Add(endpoint.Property(EndpointProperty.Port)));
416c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port));
3807Assert.Equal(allocatedPort.ToString(CultureInfo.InvariantCulture), await database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port).GetValueAsync());
3823database.WithEnvironment("PUBLIC_PORT", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port));
3824database.WithEnvironment("PUBLIC_PORT_AGAIN", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port));
8831.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port))
8832.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port));
8838.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port))
8839.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port));
9017c.EnvironmentVariables["EXEC_PORT"] = executable.GetEndpoint("http").Property(EndpointProperty.Port);
9052c.EnvironmentVariables["EXEC_PORT"] = executable.GetEndpoint("http").Property(EndpointProperty.Port);
9093c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port));
9329c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port));
9366.WithEnvironment("EXEC_PORT", executable.GetEndpoint("http").Property(EndpointProperty.Port));
9401.WithEnvironment("EXEC_A_PORT", executableA.GetEndpoint("http").Property(EndpointProperty.Port));
9407.WithEnvironment("EXEC_B_PORT", executableB.GetEndpoint("http").Property(EndpointProperty.Port))
9464.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)