1 instantiation of EndpointReferenceExpression
Aspire.Hosting (1)
ApplicationModel\EndpointReference.cs (1)
197return new(this, property);
122 references to EndpointReferenceExpression
Aspire.Hosting (10)
ApplicationModel\EndpointReference.cs (4)
71public EndpointReferenceExpression BrowserOrigins => Property(EndpointProperty.BrowserOrigins); 87public EndpointReferenceExpression PrimaryBrowserOrigin => Property(EndpointProperty.PrimaryBrowserOrigin); 193/// <returns>An <see cref="EndpointReferenceExpression"/> representing the specified <see cref="EndpointProperty"/>.</returns> 195public EndpointReferenceExpression Property(EndpointProperty property)
ApplicationModel\IComputeEnvironmentResource.cs (2)
26/// Gets a <see cref="ReferenceExpression"/> representing a deployed endpoint property for the specified <see cref="EndpointReferenceExpression"/>. 41ReferenceExpression GetEndpointPropertyExpression(EndpointReferenceExpression endpointReferenceExpression)
ApplicationModel\ResourceExtensions.cs (1)
708EndpointReferenceExpression { Endpoint: var endpoint } => endpoint,
Publishing\ManifestPublishingContext.cs (3)
809EndpointReferenceExpression endpoint when endpoint.Property is 877else if (source is EndpointReferenceExpression { Property: EndpointProperty.TlsEnabled } endpointProperty) 1288private string RegisterEndpointPropertyInput(EndpointReferenceExpression endpoint)
Aspire.Hosting.Azure.ApiManagement (1)
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
75EndpointReferenceExpression endpointReferenceExpression,
Aspire.Hosting.Azure.AppContainers (4)
AzureContainerAppEnvironmentResource.cs (1)
426public ReferenceExpression GetEndpointPropertyExpression(EndpointReferenceExpression endpointReferenceExpression)
BaseContainerAppContext.cs (2)
187private BicepValue<string> GetEndpointValue(EndpointMapping mapping, EndpointReferenceExpression reference) 312if (value is EndpointReferenceExpression epExpr)
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
75EndpointReferenceExpression endpointReferenceExpression,
Aspire.Hosting.Azure.AppService (3)
AzureAppServiceEnvironmentResource.cs (1)
558public ReferenceExpression GetEndpointPropertyExpression(EndpointReferenceExpression endpointReferenceExpression)
AzureAppServiceWebsiteContext.cs (1)
257if (value is EndpointReferenceExpression epExpr)
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
75EndpointReferenceExpression endpointReferenceExpression,
Aspire.Hosting.Azure.EntraId (1)
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
75EndpointReferenceExpression endpointReferenceExpression,
Aspire.Hosting.Azure.EntraId.Tests (1)
EntraIdProvisioningTests.cs (1)
1563public ReferenceExpression GetEndpointPropertyExpression(EndpointReferenceExpression endpointReferenceExpression)
Aspire.Hosting.Azure.FrontDoor (1)
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
75EndpointReferenceExpression endpointReferenceExpression,
Aspire.Hosting.Azure.Sandboxes (6)
AzureSandboxContainerDeployment.cs (2)
1197case EndpointReferenceExpression endpointReferenceExpression 1295internal static bool TryResolveEndpointReferenceValue(EndpointReferenceExpression endpointReferenceExpression, IComputeEnvironmentResource? currentComputeEnvironment, [NotNullWhen(true)] out ReferenceExpression? expression)
AzureSandboxEndpointPropertyValueProvider.cs (2)
17private readonly EndpointReferenceExpression _endpointReferenceExpression; 23EndpointReferenceExpression endpointReferenceExpression)
AzureSandboxGroupResource.cs (1)
299public ReferenceExpression GetEndpointPropertyExpression(EndpointReferenceExpression endpointReferenceExpression)
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
75EndpointReferenceExpression endpointReferenceExpression,
Aspire.Hosting.Azure.Tests (2)
AzureEnvironmentResourceTests.cs (2)
69var origin = frontend.GetEndpoint("http").PrimaryBrowserOrigin; 105var origins = frontend.GetEndpoint("http").PrimaryBrowserOrigin;
Aspire.Hosting.CodeGeneration.TypeScript.Tests (2)
AtsTypeScriptCodeGeneratorTests.cs (2)
647Assert.IsType<EndpointReferenceExpression>( 653Assert.IsType<EndpointReferenceExpression>(
Aspire.Hosting.DevTunnels.Tests (1)
DevTunnelMonitorTests.cs (1)
257var origin = endpoint.BrowserOrigins;
Aspire.Hosting.Docker (3)
DockerComposeServiceResourceExtensions.cs (2)
50if (value is EndpointReferenceExpression epExpr) 111ParameterResource GetEndpointInput(EndpointReferenceExpression reference, DockerComposeServiceResource.EndpointMapping mapping)
src\Shared\EndpointPropertyInputCache.cs (1)
27EndpointReferenceExpression reference,
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
183var origin = frontend.GetEndpoint("HTTP").BrowserOrigins;
Aspire.Hosting.Foundry (6)
HostedAgent\AzureHostedAgentResource.cs (4)
395EndpointReferenceExpression endpointReferenceExpression => IsHostedAgentTargetPortExpression(endpointReferenceExpression, hostedAgent), 405private static bool IsHostedAgentTargetPortExpression(EndpointReferenceExpression endpointReferenceExpression, AzureHostedAgentResource hostedAgent) 425case EndpointReferenceExpression endpointReferenceExpression: 487EndpointReferenceExpression endpointReferenceExpression,
Project\ProjectResource.cs (1)
229ReferenceExpression IComputeEnvironmentResource.GetEndpointPropertyExpression(EndpointReferenceExpression endpointReferenceExpression)
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
75EndpointReferenceExpression endpointReferenceExpression,
Aspire.Hosting.Garnet (2)
GarnetResource.cs (2)
38public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 43public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.JavaScript.Tests (1)
ResourceCreationTests.cs (1)
155arg => Assert.IsType<EndpointReferenceExpression>(arg)
Aspire.Hosting.Kafka (2)
KafkaServerResource.cs (2)
35public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 40public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.Kubernetes (6)
KubernetesEnvironmentContext.cs (2)
18public ParameterResource GetEndpointInput(EndpointReferenceExpression reference, DistributedApplicationExecutionContext executionContext) 34private string? GetOriginDefault(EndpointReferenceExpression reference, IEnumerable<IResource> resources)
KubernetesResource.cs (2)
589if (value is EndpointReferenceExpression epExpr) 883EndpointReferenceExpression => false,
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
75EndpointReferenceExpression endpointReferenceExpression,
src\Shared\EndpointPropertyInputCache.cs (1)
27EndpointReferenceExpression reference,
Aspire.Hosting.Kubernetes.Tests (2)
KubernetesPublisherTests.cs (2)
59var origin = web.GetEndpoint("HTTP", KnownNetworkIdentifiers.LocalhostNetwork).BrowserOrigins; 376var origin = frontend.GetEndpoint("http").BrowserOrigins;
Aspire.Hosting.Milvus (2)
MilvusServerResource.cs (2)
45public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 50public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.MongoDB (2)
MongoDBServerResource.cs (2)
47public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 52public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.MySql (2)
MySqlServerResource.cs (2)
42public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 47public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.Nats (2)
NatsServerResource.cs (2)
42public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 47public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.Oracle (2)
OracleDatabaseServerResource.cs (2)
39public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 44public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.PostgreSQL (2)
PostgresServerResource.cs (2)
112public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 117public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.Qdrant (4)
QdrantServerResource.cs (4)
45public EndpointReferenceExpression GrpcHost => PrimaryEndpoint.Property(EndpointProperty.Host); 50public EndpointReferenceExpression GrpcPort => PrimaryEndpoint.Property(EndpointProperty.Port); 60public EndpointReferenceExpression HttpHost => HttpEndpoint.Property(EndpointProperty.Host); 65public EndpointReferenceExpression HttpPort => HttpEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.RabbitMQ (2)
RabbitMQServerResource.cs (2)
48public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 53public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.Radius (7)
Publishing\RadiusInfrastructureBuilder.cs (5)
4154case EndpointReferenceExpression endpointReferenceExpression when endpointReferenceExpression.Property is 4171case EndpointReferenceExpression endpointReferenceExpression: 4382if (expression.Condition is EndpointReference or EndpointReferenceExpression) 4553case EndpointReferenceExpression: 4892private string ResolveEndpointProperty(EndpointReferenceExpression endpointReferenceExpression) =>
RadiusEnvironmentResource.cs (1)
169ReferenceExpression IComputeEnvironmentResource.GetEndpointPropertyExpression(EndpointReferenceExpression endpointReferenceExpression)
src\Shared\EndpointPropertyInputCache.cs (1)
27EndpointReferenceExpression reference,
Aspire.Hosting.Radius.Tests (1)
Publishing\BackingResourceValueResolutionTests.cs (1)
1190var port = cache.GetEndpoint("tcp").Property(EndpointProperty.Port);
Aspire.Hosting.Redis (2)
RedisResource.cs (2)
57public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 62public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.Seq (2)
SeqResource.cs (2)
28public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 33public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.SqlServer (2)
SqlServerServerResource.cs (2)
39public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 44public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.Tests (33)
ConditionalReferenceExpressionTests.cs (5)
86var condition = endpointRef.Property(EndpointProperty.TlsEnabled); 250var tlsExpr = endpointRef.Property(EndpointProperty.TlsEnabled); 267var tlsExpr = endpointRef.Property(EndpointProperty.TlsEnabled); 281var tlsExpr = endpointRef.Property(EndpointProperty.TlsEnabled); 294var tlsExpr = endpointRef.Property(EndpointProperty.TlsEnabled);
EndpointReferenceTests.cs (16)
74var endpointExpr = endpointRef.Property(EndpointProperty.Url); 94var endpointExpr = endpointRef.Property(EndpointProperty.Url); 108var hostExpr = endpointRef.Property(EndpointProperty.Host); 127var portExpr = endpointRef.Property(EndpointProperty.Port); 146var schemeExpr = endpointRef.Property(EndpointProperty.Scheme); 160var ipv4Expr = endpointRef.Property(EndpointProperty.IPV4Host); 174var targetPortExpr = endpointRef.Property(EndpointProperty.TargetPort); 188var targetPortExpr = endpointRef.Property(EndpointProperty.TargetPort); 207var endpointExpr = endpointRef.Property(EndpointProperty.Url); 225var expr1 = endpointRef.Property(EndpointProperty.Url); 226var expr2 = endpointRef.Property(EndpointProperty.Host); 227var expr3 = endpointRef.Property(EndpointProperty.Port); 388var expression = destination.GetEndpoint(annotation.Name).Property(property); 508var origins = endpoint.BrowserOrigins; 657var expression = endpoint.Property(property); 675var origin = endpoint.BrowserOrigins;
ManifestExpressionTests.cs (4)
89var origin = frontend.GetEndpoint("http").BrowserOrigins; 166var tls = endpoint.Property(EndpointProperty.TlsEnabled); 406var origin = endpoint.Property(property); 437var origin = frontend.GetEndpoint("http").BrowserOrigins;
Orchestrator\ApplicationOrchestratorTests.cs (5)
240var browserEndpoint = frontend.GetEndpoint("http").BrowserOrigins; 303var browserEndpoint = frontend.GetEndpoint("http").BrowserOrigins; 425var origins = frontend.GetEndpoint("http").BrowserOrigins; 435var browserEndpoint = frontend.GetEndpoint("http").BrowserOrigins; 514var browserEndpoint = frontend.GetEndpoint("http").BrowserOrigins;
Schema\SchemaTests.cs (1)
55var tls = frontend.GetEndpoint("http").Property(EndpointProperty.TlsEnabled);
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
75EndpointReferenceExpression endpointReferenceExpression,
WithEnvironmentTests.cs (1)
468var portProperty = endpoint.Property(EndpointProperty.Port);
Aspire.Hosting.Valkey (2)
ValkeyResource.cs (2)
43public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 48public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);