293 references to Property
Aspire.Hosting (14)
Aspire.Hosting.Azure.AppConfiguration (1)
Aspire.Hosting.Azure.AppContainers (1)
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 (34)
Aspire.Hosting.Azure.WebPubSub (1)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.Docker.Tests (2)
Aspire.Hosting.Foundry (2)
Aspire.Hosting.Garnet (3)
Aspire.Hosting.JavaScript (4)
Aspire.Hosting.Kafka (10)
Aspire.Hosting.Keycloak (1)
Aspire.Hosting.Kubernetes (1)
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 (21)
Aspire.Hosting.Redis (7)
Aspire.Hosting.Seq (4)
Aspire.Hosting.SqlServer (4)
Aspire.Hosting.Tests (86)
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)
728.WithArgs(c => c.Args.Add(endpoint.Property(EndpointProperty.Port)));
768c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port));
4526Assert.Equal(allocatedPort.ToString(CultureInfo.InvariantCulture), await database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port).GetValueAsync());
4542database.WithEnvironment("PUBLIC_PORT", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port));
4543database.WithEnvironment("PUBLIC_PORT_AGAIN", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port));
4590database.WithEnvironment("PUBLIC_HOST_AND_PORT", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.HostAndPort));
9608.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port))
9609.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port));
9615.WithEnvironment("EXE_PROXIED_PORT", executable.GetEndpoint("proxied").Property(EndpointProperty.Port))
9616.WithEnvironment("EXE_NOTPROXIED_PORT", executable.GetEndpoint("notProxied").Property(EndpointProperty.Port));
9794c.EnvironmentVariables["EXEC_PORT"] = executable.GetEndpoint("http").Property(EndpointProperty.Port);
9829c.EnvironmentVariables["EXEC_PORT"] = executable.GetEndpoint("http").Property(EndpointProperty.Port);
9870c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port));
10106c.Args.Add(executable.GetEndpoint("http").Property(EndpointProperty.Port));
10143.WithEnvironment("EXEC_PORT", executable.GetEndpoint("http").Property(EndpointProperty.Port));
10174.WithEnvironment("EXECUTABLE_PORT", executable.GetEndpoint("http").Property(EndpointProperty.Port));
10207$"{containerEndpoint.Property(EndpointProperty.Scheme)}://{containerEndpoint.Property(EndpointProperty.Host)}:{containerEndpoint.Property(EndpointProperty.Port)}"))
10208.WithEnvironment("HOST_PORT", executable.GetEndpoint("unused").Property(EndpointProperty.Port));
10252.WithEnvironment("TARGET_PORT", targetEndpoint.Property(EndpointProperty.Port));
10296project.GetEndpoint("http", KnownNetworkIdentifiers.DefaultAspireContainerNetwork).Property(EndpointProperty.Port));
10335target.GetEndpoint("http", KnownNetworkIdentifiers.DefaultAspireContainerNetwork).Property(EndpointProperty.Port));
10372executable.GetEndpoint("http", KnownNetworkIdentifiers.DefaultAspireContainerNetwork).Property(EndpointProperty.Port));
10441executable.GetEndpoint("udp", KnownNetworkIdentifiers.DefaultAspireContainerNetwork).Property(EndpointProperty.Port));
10496target.GetEndpoint("http", KnownNetworkIdentifiers.DefaultAspireContainerNetwork).Property(EndpointProperty.Port));
10537context.EnvironmentVariables["CONTAINER_PORT"] = containerEndpoint.Property(EndpointProperty.Port);
10586executable.GetEndpoint("http", KnownNetworkIdentifiers.DefaultAspireContainerNetwork).Property(EndpointProperty.Port));
10626.WithEnvironment("TARGET_PORT", containerEndpoint.Property(EndpointProperty.Port));
10628.WithEnvironment("TARGET_PORT", target.GetEndpoint("http").Property(EndpointProperty.Port));
10684.WithEnvironment("EXEC_A_PORT", executableA.GetEndpoint("http").Property(EndpointProperty.Port));
10690.WithEnvironment("EXEC_B_PORT", executableB.GetEndpoint("http").Property(EndpointProperty.Port))
10747.WithEnvironment("UPSTREAM_PORT", upstreamExecutable.GetEndpoint("http").Property(EndpointProperty.Port))
ExpressionResolverTests.cs (19)
327ReferenceExpression.Create($"{PrimaryEndpoint.Property(EndpointProperty.Url)}");
351{ "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)}/;") },
352{ "Url", ReferenceExpression.Create($"Url={Endpoint1.Property(EndpointProperty.Url)};") },
354{ "OnlyHost", ReferenceExpression.Create($"Host={Endpoint1.Property(EndpointProperty.Host)};") },
355{ "OnlyPort", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};") },
356{ "HostAndPort", ReferenceExpression.Create($"HostPort={Endpoint1.Property(EndpointProperty.HostAndPort)}") },
357{ "PortBeforeHost", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};Host={Endpoint1.Property(EndpointProperty.Host)};") },
358{ "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)}/;") },
363{ "UrlEncodedHost", ReferenceExpression.Create($"Host={Endpoint3.Property(EndpointProperty.Host):uri};") },
Aspire.Hosting.Valkey (3)
Aspire.Hosting.Yarp (5)
AspireWithNode.AppHost (1)
Stress.AppHost (7)