328 references to Property
Aspire.Hosting (16)
Aspire.Hosting.Azure.ApiManagement (3)
Aspire.Hosting.Azure.AppConfiguration (1)
Aspire.Hosting.Azure.AppContainers (3)
Aspire.Hosting.Azure.AppService (1)
Aspire.Hosting.Azure.CosmosDB (4)
Aspire.Hosting.Azure.EntraId (3)
Aspire.Hosting.Azure.EventHubs (5)
Aspire.Hosting.Azure.FrontDoor (1)
Aspire.Hosting.Azure.Functions (7)
Aspire.Hosting.Azure.KeyVault (2)
Aspire.Hosting.Azure.Kubernetes.Tests (1)
Aspire.Hosting.Azure.PostgreSQL (1)
Aspire.Hosting.Azure.Redis (2)
Aspire.Hosting.Azure.Sandboxes (3)
Aspire.Hosting.Azure.ServiceBus (5)
Aspire.Hosting.Azure.SignalR (2)
Aspire.Hosting.Azure.Sql (1)
Aspire.Hosting.Azure.Storage (6)
Aspire.Hosting.Azure.Tests (37)
Aspire.Hosting.Azure.WebPubSub (1)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.Docker.Tests (5)
Aspire.Hosting.Foundry (2)
Aspire.Hosting.Foundry.Tests (1)
Aspire.Hosting.Garnet (3)
Aspire.Hosting.JavaScript (4)
Aspire.Hosting.Kafka (10)
Aspire.Hosting.Keycloak (1)
Aspire.Hosting.Kubernetes (1)
Aspire.Hosting.Kubernetes.Tests (4)
Aspire.Hosting.Maui (1)
Aspire.Hosting.Milvus (3)
Aspire.Hosting.MongoDB (5)
Aspire.Hosting.MySql (4)
Aspire.Hosting.Nats (3)
Aspire.Hosting.Oracle (3)
Aspire.Hosting.PostgreSQL (4)
Aspire.Hosting.Python (1)
Aspire.Hosting.Qdrant (8)
Aspire.Hosting.RabbitMQ (3)
Aspire.Hosting.Radius (1)
Aspire.Hosting.Radius.Tests (23)
Aspire.Hosting.Redis (7)
Aspire.Hosting.Seq (4)
Aspire.Hosting.SqlServer (4)
Aspire.Hosting.Tests (101)
ComputeEnvironmentEndpointResolverTests.cs (6)
24endpoint.Property(EndpointProperty.Url), [currentEnv.Resource], out var expression);
63endpoint.Property(EndpointProperty.Url), [currentEnv.Resource], out var expression);
82endpoint.Property(EndpointProperty.Url), [currentEnv.Resource], out var expression);
99endpoint.Property(EndpointProperty.Url), [currentEnv.Resource], out var expression);
122endpoint.Property(EndpointProperty.Url), [currentEnv.Resource], out var expression);
146endpoint.Property(EndpointProperty.Url), [currentEnv.Resource], out _));
Dcp\DcpExecutorTests.cs (33)
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));
5080database.WithEnvironment("PUBLIC_HOST_AND_PORT", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.HostAndPort));
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))
ExpressionResolverTests.cs (19)
356ReferenceExpression.Create($"{PrimaryEndpoint.Property(EndpointProperty.Url)}");
380{ "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)}/;") },
381{ "Url", ReferenceExpression.Create($"Url={Endpoint1.Property(EndpointProperty.Url)};") },
383{ "OnlyHost", ReferenceExpression.Create($"Host={Endpoint1.Property(EndpointProperty.Host)};") },
384{ "OnlyPort", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};") },
385{ "HostAndPort", ReferenceExpression.Create($"HostPort={Endpoint1.Property(EndpointProperty.HostAndPort)}") },
386{ "PortBeforeHost", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};Host={Endpoint1.Property(EndpointProperty.Host)};") },
387{ "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)}/;") },
392{ "UrlEncodedHost", ReferenceExpression.Create($"Host={Endpoint3.Property(EndpointProperty.Host):uri};") },
Aspire.Hosting.Valkey (3)
Aspire.Hosting.Yarp (5)
AspireWithNode.AppHost (1)
Stress.AppHost (7)