96 references to Url
Aspire.Hosting (6)
ApplicationModel\EndpointReference.cs (5)
149public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default) => Property(EndpointProperty.Url).GetValueAsync(cancellationToken); 158public ValueTask<string?> GetValueAsync(ValueProviderContext context, CancellationToken cancellationToken = default) => Property(EndpointProperty.Url).GetValueAsync(context, cancellationToken); 170internal string GetExpression(EndpointProperty property = EndpointProperty.Url) 174EndpointProperty.Url => Binding("url"), 443EndpointProperty.Url => new(allocatedEndpoint.UriString),
ApplicationModel\IComputeEnvironmentResource.cs (1)
60EndpointProperty.Url => IsDefaultPort(scheme, port)
Aspire.Hosting.Azure.ApiManagement (3)
AzureApiManagementExtensions.cs (2)
2374endpoint.Property(EndpointProperty.Url)); 2448endpoint.Property(EndpointProperty.Url));
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
51endpointReference.Property(EndpointProperty.Url),
Aspire.Hosting.Azure.AppConfiguration (1)
AzureAppConfigurationResource.cs (1)
51? ReferenceExpression.Create($"Endpoint={EmulatorEndpoint.Property(EndpointProperty.Url)};Id=anonymous;Secret=abcdefghijklmnopqrstuvwxyz1234567890;Anonymous=True")
Aspire.Hosting.Azure.AppContainers (5)
AzureContainerAppEnvironmentResource.cs (1)
452EndpointProperty.Url => ReferenceExpression.Create($"{scheme}://{host}"),
BaseContainerAppContext.cs (3)
211EndpointProperty.Url => GetHostValue($"{scheme}://", suffix: isHttpIngress ? null : $":{port}"), 261var url = GetEndpointValue(mapping, ep.Property(EndpointProperty.Url)); 322if (epExpr.Property is EndpointProperty.Url or EndpointProperty.Host or EndpointProperty.IPV4Host or EndpointProperty.HostAndPort or
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
51endpointReference.Property(EndpointProperty.Url),
Aspire.Hosting.Azure.AppService (5)
AzureAppServiceEnvironmentResource.cs (1)
580EndpointProperty.Url => ReferenceExpression.Create($"{scheme}://{host}"),
AzureAppServiceWebsiteContext.cs (3)
215(GetEndpointValue(context._slotEndpointMapping[ep.EndpointName], EndpointProperty.Url), secretType) : 216(GetEndpointValue(context._endpointMapping[ep.EndpointName], EndpointProperty.Url), secretType); 946EndpointProperty.Url => BicepFunction.Interpolate($"{mapping.Scheme}://{mapping.Host}.azurewebsites.net"),
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
51endpointReference.Property(EndpointProperty.Url),
Aspire.Hosting.Azure.CosmosDB (2)
AzureCosmosDBEmulatorConnectionString.cs (1)
13? ReferenceExpression.Create($"AccountKey={CosmosConstants.EmulatorAccountKey};AccountEndpoint={endpoint.Property(EndpointProperty.Url)}")
AzureCosmosDBResource.cs (1)
110ReferenceExpression.Create($"{EmulatorEndpoint.Property(EndpointProperty.Url)}") :
Aspire.Hosting.Azure.EntraId (2)
EntraIdRunModeBrowserOrigin.cs (1)
33var allocatedUrl = await endpoint.Property(EndpointProperty.Url).GetValueAsync(context, cancellationToken).ConfigureAwait(false);
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
51endpointReference.Property(EndpointProperty.Url),
Aspire.Hosting.Azure.FrontDoor (1)
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
51endpointReference.Property(EndpointProperty.Url),
Aspire.Hosting.Azure.Functions (1)
DurableTask\DurableTaskSchedulerResource.cs (1)
58return ReferenceExpression.Create($"{dashboardEndpoint.Property(EndpointProperty.Url)}");
Aspire.Hosting.Azure.KeyVault (2)
AzureKeyVaultResource.cs (2)
59ReferenceExpression.Create($"{EmulatorEndpoint.Property(EndpointProperty.Url)}") : 75ReferenceExpression.Create($"{EmulatorEndpoint.Property(EndpointProperty.Url)}") :
Aspire.Hosting.Azure.Kubernetes.Tests (1)
AzureKubernetesFoundryReferenceTests.cs (1)
68.WithEnvironment("AGENT_URL", agent.GetEndpoint("http").Property(EndpointProperty.Url));
Aspire.Hosting.Azure.Sandboxes (5)
AzureSandboxContainerDeployment.cs (3)
1196EndpointProperty.Url).ConfigureAwait(false); 1226case EndpointProperty.Url: 1292return TryResolveEndpointReferenceValue(endpointReference.Property(EndpointProperty.Url), currentComputeEnvironment, out expression);
AzureSandboxEndpointPropertyValueProvider.cs (1)
104EndpointProperty.Url => url,
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
51endpointReference.Property(EndpointProperty.Url),
Aspire.Hosting.Azure.SignalR (2)
AzureSignalRResource.cs (2)
55ReferenceExpression.Create($"{EmulatorEndpoint.Property(EndpointProperty.Url)}") : 63ReferenceExpression.Create($"Endpoint={EmulatorEndpoint.Property(EndpointProperty.Url)};AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGH;Version=1.0;"):
Aspire.Hosting.Azure.Storage (3)
AzureStorageResource.cs (3)
97? ReferenceExpression.Create($"{EmulatorBlobEndpoint.Property(EndpointProperty.Url)}") 117? ReferenceExpression.Create($"{EmulatorQueueEndpoint.Property(EndpointProperty.Url)}") 127? ReferenceExpression.Create($"{EmulatorTableEndpoint.Property(EndpointProperty.Url)}")
Aspire.Hosting.Azure.Tests (9)
AzureAppServiceTests.cs (2)
439.WithEnvironment("AGENT_URL", agent.GetEndpoint("http").Property(EndpointProperty.Url)); 1198[InlineData(EndpointProperty.Url, "https://project1-website123.azurewebsites.net")]
AzureContainerAppExpressEndpointTests.cs (5)
43EndpointProperty.Url, EndpointProperty.Host, EndpointProperty.IPV4Host, 102[EndpointProperty.Url] = "https://api.salmonisland-e9e6a567.westus3.azurecontainerapps.io", 143[InlineData(EndpointProperty.Url)] 319.WithEnvironment("API_URL", api.GetEndpoint("http").Property(EndpointProperty.Url)); 345? environment.Resource.GetEndpointPropertyExpression(endpoint.Property(EndpointProperty.Url))
AzureContainerAppsTests.cs (2)
202.WithEnvironment("AGENT_URL", agent.GetEndpoint("http").Property(EndpointProperty.Url)); 2885[InlineData(EndpointProperty.Url, "https://project1.example.azurecontainerapps.io")]
Aspire.Hosting.Azure.WebPubSub (1)
AzureWebPubSubResource.cs (1)
68IsEmulator ? ReferenceExpression.Create($"{EmulatorEndpoint.Property(EndpointProperty.Url)}") : ReferenceExpression.Create($"{Endpoint}");
Aspire.Hosting.Docker (2)
DockerComposeServiceResourceExtensions.cs (2)
28var url = GetValue(mapping, EndpointProperty.Url); 139EndpointProperty.Url => GetHostValue($"{mapping.Scheme}://", $":{mapping.InternalPort}"),
Aspire.Hosting.Foundry (3)
HostedAgent\AzureHostedAgentResource.cs (1)
424return await ResolvePublishedEndpointAsync(endpointReference.Property(EndpointProperty.Url), context, hostedAgent, resource, environmentVariableName, cancellationToken).ConfigureAwait(false);
Project\ProjectResource.cs (1)
236EndpointProperty.Url => GetAgentAddressExpression(endpointReferenceExpression.Endpoint),
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
51endpointReference.Property(EndpointProperty.Url),
Aspire.Hosting.Kubernetes (3)
KubernetesResource.cs (2)
561var url = GetEndpointValue(mapping, EndpointProperty.Url); 791EndpointProperty.Url => GetHostValue($"{scheme}://", suffix: GetPortSuffix(servicePort)),
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
51endpointReference.Property(EndpointProperty.Url),
Aspire.Hosting.Milvus (1)
MilvusServerResource.cs (1)
73public ReferenceExpression UriExpression => ReferenceExpression.Create($"{PrimaryEndpoint.Property(EndpointProperty.Url)}");
Aspire.Hosting.Qdrant (4)
QdrantServerResource.cs (4)
72$"Endpoint={PrimaryEndpoint.Property(EndpointProperty.Url)};Key={ApiKeyParameter}"); 80public ReferenceExpression UriExpression => ReferenceExpression.Create($"{PrimaryEndpoint.Property(EndpointProperty.Url)}"); 87$"Endpoint={HttpEndpoint.Property(EndpointProperty.Url)};Key={ApiKeyParameter}"); 95public ReferenceExpression HttpUriExpression => ReferenceExpression.Create($"{HttpEndpoint.Property(EndpointProperty.Url)}");
Aspire.Hosting.Radius (6)
Publishing\RadiusInfrastructureBuilder.cs (4)
3391case EndpointProperty.Url: 3469property is not (EndpointProperty.Scheme or EndpointProperty.TlsEnabled or EndpointProperty.Url)) 4149if (!TryProjectBackingEndpoint(endpointReference, EndpointProperty.Url, parts)) 4890ResolveHostExpression(((IComputeEnvironmentResource)_environment).GetEndpointPropertyExpression(endpointReference.Property(EndpointProperty.Url)));
RadiusEnvironmentResource.cs (2)
205EndpointProperty.Url => IsDefaultPort(scheme, port.Value) 244property is not (EndpointProperty.Scheme or EndpointProperty.TlsEnabled or EndpointProperty.Url))
Aspire.Hosting.Radius.Tests (6)
Publishing\BackingResourceContractTests.cs (1)
128[InlineData(EndpointProperty.Url)]
Publishing\BackingResourceProjectionTests.cs (1)
92.WithEnvironment("CUSTOM_URL", cache.GetEndpoint("tcp").Property(EndpointProperty.Url));
Publishing\BackingResourceValueResolutionTests.cs (2)
415.WithEnvironment("MGMT_URL", rabbit.GetEndpoint("management").Property(EndpointProperty.Url)); 967.WithEnvironment("CACHE_URL", cache.GetEndpoint("tcp").Property(EndpointProperty.Url));
RadiusEnvironmentResourceTests.cs (2)
91[InlineData(EndpointProperty.Url, "http://api-api.default.svc.cluster.local:8080")] 128[InlineData(EndpointProperty.Url)]
Aspire.Hosting.Seq (2)
SeqResource.cs (2)
39ReferenceExpression.Create($"{PrimaryEndpoint.Property(EndpointProperty.Url)}"); 47public ReferenceExpression UriExpression => ReferenceExpression.Create($"{PrimaryEndpoint.Property(EndpointProperty.Url)}");
Aspire.Hosting.Tests (19)
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 _));
ComputeEnvironmentValidationTests.cs (2)
85[InlineData(EndpointProperty.Url, "http://api.example.com:8080")] 112var ex = Assert.Throws<InvalidOperationException>(() => environment.GetEndpointPropertyExpression(endpointReference.Property(EndpointProperty.Url)));
EndpointReferenceTests.cs (8)
74var endpointExpr = endpointRef.Property(EndpointProperty.Url); 94var endpointExpr = endpointRef.Property(EndpointProperty.Url); 207var endpointExpr = endpointRef.Property(EndpointProperty.Url); 225var expr1 = endpointRef.Property(EndpointProperty.Url); 342[InlineData(EndpointProperty.Url, ResourceKind.Host, ResourceKind.Host, "blah://localhost:1234")] 343[InlineData(EndpointProperty.Url, ResourceKind.Host, ResourceKind.Container, "blah://localhost:1234")] 344[InlineData(EndpointProperty.Url, ResourceKind.Container, ResourceKind.Host, "blah://host.docker.internal:1234")] 345[InlineData(EndpointProperty.Url, ResourceKind.Container, ResourceKind.Container, "blah://destination.dev.internal:4567")]
ExpressionResolverTests.cs (2)
356ReferenceExpression.Create($"{PrimaryEndpoint.Property(EndpointProperty.Url)}"); 381{ "Url", ReferenceExpression.Create($"Url={Endpoint1.Property(EndpointProperty.Url)};") },
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
51endpointReference.Property(EndpointProperty.Url),
Stress.AppHost (1)
AppHost.cs (1)
77.WithEnvironment("URL", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Url)}");