Implemented interface member:
method
GetValueAsync
Aspire.Hosting.ApplicationModel.IValueProvider.GetValueAsync(System.Threading.CancellationToken)
67 references to GetValueAsync
Aspire.Hosting (1)
ApplicationModel\EndpointReference.cs (1)
149
public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default) => Property(EndpointProperty.Url).
GetValueAsync
(cancellationToken);
Aspire.Hosting.Azure.EntraId.Tests (1)
EntraIdProvisioningTests.cs (1)
1344
var pendingOrigin = web.GetEndpoint("https").BrowserOrigins.
GetValueAsync
(cts.Token).AsTask();
Aspire.Hosting.DevTunnels (1)
DevTunnelResource.cs (1)
124
resolvedTargetPort = await TargetEndpoint.Property(property).
GetValueAsync
(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.DevTunnels.Tests (4)
DevTunnelMonitorTests.cs (4)
282
Assert.Equal("https://custom.example,https://original-3000.usw2.devtunnels.ms", await origin.
GetValueAsync
(ct));
290
await endpoint.BrowserOrigins.
GetValueAsync
());
300
Assert.Equal("https://custom.example,https://replacement-3000.usw2.devtunnels.ms", await origin.
GetValueAsync
());
303
await endpoint.BrowserOrigins.
GetValueAsync
());
Aspire.Hosting.Maui (1)
MauiOtlpExtensions.cs (1)
377
portValue = await endpointReference.Property(property).
GetValueAsync
(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.MongoDB (1)
ReplicaSet\MongoDBReplicaSetBuilderExtensions.cs (1)
163
.
GetValueAsync
(ct)
Aspire.Hosting.Tests (58)
ConditionalReferenceExpressionTests.cs (4)
252
var value = await tlsExpr.
GetValueAsync
();
269
var value = await tlsExpr.
GetValueAsync
();
296
Assert.Equal(bool.FalseString, await tlsExpr.
GetValueAsync
());
299
Assert.Equal(bool.TrueString, await tlsExpr.
GetValueAsync
());
Dcp\DcpExecutorTests.cs (3)
5016
Assert.Equal(allocatedPort.ToString(CultureInfo.InvariantCulture), await database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port).
GetValueAsync
());
5215
Assert.Equal($"https://frontend.example,{frontend.GetEndpoint("http").Url}", await frontend.GetEndpoint("http").BrowserOrigins.
GetValueAsync
(ct));
5216
Assert.Equal($"https://backend.example,{backend.GetEndpoint("http").Url}", await backend.GetEndpoint("http").BrowserOrigins.
GetValueAsync
(ct));
EndpointReferenceTests.cs (29)
76
var getValueTask = endpointExpr.
GetValueAsync
(CancellationToken.None);
96
var url = await endpointExpr.
GetValueAsync
(CancellationToken.None);
110
var getValueTask = hostExpr.
GetValueAsync
(CancellationToken.None);
129
var getValueTask = portExpr.
GetValueAsync
(CancellationToken.None);
148
var scheme = await schemeExpr.
GetValueAsync
(CancellationToken.None);
162
var ipv4 = await ipv4Expr.
GetValueAsync
(CancellationToken.None);
176
var targetPort = await targetPortExpr.
GetValueAsync
(CancellationToken.None);
190
var getValueTask = targetPortExpr.
GetValueAsync
(CancellationToken.None);
210
var getValueTask = endpointExpr.
GetValueAsync
(cts.Token);
229
var task1 = expr1.
GetValueAsync
(CancellationToken.None);
230
var task2 = expr2.
GetValueAsync
(CancellationToken.None);
231
var task3 = expr3.
GetValueAsync
(CancellationToken.None);
533
Assert.Equal("https://public.example,https://alias.example,https://localhost:8443", await endpoint.BrowserOrigins.
GetValueAsync
());
534
Assert.Equal("https://public.example", await endpoint.PrimaryBrowserOrigin.
GetValueAsync
());
548
Assert.Equal(expected, await endpoint.BrowserOrigins.
GetValueAsync
());
549
Assert.Equal(expected, await endpoint.PrimaryBrowserOrigin.
GetValueAsync
());
561
Assert.Equal("https://frontend.example", await endpoint.BrowserOrigins.
GetValueAsync
());
565
Assert.Equal("https://frontend.example,https://replacement.example", await endpoint.BrowserOrigins.
GetValueAsync
());
566
Assert.Equal("https://frontend.example", await endpoint.PrimaryBrowserOrigin.
GetValueAsync
());
578
Assert.Equal("http://frontend.example", await resource.GetEndpoint("HTTP").BrowserOrigins.
GetValueAsync
());
579
Assert.Equal("https://separate.example", await resource.GetEndpoint("https").BrowserOrigins.
GetValueAsync
());
591
Assert.Equal("https://public.example", await host.BrowserOrigins.
GetValueAsync
());
592
Assert.Equal("https://public.example", await container.BrowserOrigins.
GetValueAsync
());
593
Assert.Equal("https://public.example", await host.PrimaryBrowserOrigin.
GetValueAsync
());
615
Assert.Equal(expected, await endpoint.Property(property).
GetValueAsync
());
630
Assert.Equal(expected, await endpoint.BrowserOrigins.
GetValueAsync
());
631
Assert.Equal(expected, await endpoint.PrimaryBrowserOrigin.
GetValueAsync
());
642
var value = resource.GetEndpoint("http").Property(property).
GetValueAsync
(cts.Token);
684
Assert.Equal("https://local.example", await origin.
GetValueAsync
());
Orchestrator\ApplicationOrchestratorTests.cs (22)
37
await requested.GetEndpoint("http").BrowserOrigins.
GetValueAsync
(context.CancellationToken);
54
await first.GetEndpoint("http").BrowserOrigins.
GetValueAsync
(cts.Token));
59
Assert.Equal("http://localhost:8080", await second.GetEndpoint("http").BrowserOrigins.
GetValueAsync
(cts.Token));
72
observed = await first.GetEndpoint("http").BrowserOrigins.
GetValueAsync
(context.CancellationToken);
88
Assert.Equal("http://localhost:8080", await second.GetEndpoint("http").BrowserOrigins.
GetValueAsync
());
105
var read = second.GetEndpoint("http").BrowserOrigins.
GetValueAsync
(context.CancellationToken).AsTask();
152
var pending = other.GetEndpoint("http").BrowserOrigins.
GetValueAsync
(cts.Token).AsTask();
180
observed = await endpoint.BrowserOrigins.
GetValueAsync
(ct);
189
Assert.Equal(origins, await endpoint.BrowserOrigins.
GetValueAsync
(default));
215
await endpoint.BrowserOrigins.
GetValueAsync
(default));
244
var origin = await browserEndpoint.
GetValueAsync
(ct);
314
var pendingOrigin = browserEndpoint.
GetValueAsync
();
322
Assert.Equal(expectedOrigins, await browserEndpoint.
GetValueAsync
());
362
Assert.Equal("https://admin.example,https://frontend.example,http://localhost:8080", await frontend.GetEndpoint("http").BrowserOrigins.
GetValueAsync
());
386
var pendingOrigin = frontend.GetEndpoint("http").BrowserOrigins.
GetValueAsync
();
426
Assert.Equal("https://frontend.example,http://localhost:8080", await origins.
GetValueAsync
());
444
var pendingOrigin = browserEndpoint.
GetValueAsync
();
473
Assert.Equal("http://localhost:8080", await frontend.GetEndpoint("http").BrowserOrigins.
GetValueAsync
().DefaultTimeout());
474
Assert.Equal("https://frontend.example,https://localhost:8443", await frontend.GetEndpoint("https").BrowserOrigins.
GetValueAsync
().DefaultTimeout());
494
Assert.Equal("http://localhost:8080", await frontend.GetEndpoint("http").BrowserOrigins.
GetValueAsync
());
521
await Assert.ThrowsAsync<InvalidOperationException>(async () => await browserEndpoint.
GetValueAsync
());
526
Assert.Equal("https://frontend.example,http://localhost:8080", await browserEndpoint.
GetValueAsync
());