Implemented interface member:
method
GetValueAsync
Aspire.Hosting.ApplicationModel.IValueProvider.GetValueAsync(System.Threading.CancellationToken)
19 references to GetValueAsync
Aspire.Hosting (1)
ApplicationModel\EndpointReference.cs (1)
116public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default) => Property(EndpointProperty.Url).GetValueAsync(cancellationToken);
Aspire.Hosting.DevTunnels (1)
DevTunnelResource.cs (1)
124resolvedTargetPort = await TargetEndpoint.Property(property).GetValueAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Tests (17)
ConditionalReferenceExpressionTests.cs (4)
132var value = await tlsExpr.GetValueAsync(); 149var value = await tlsExpr.GetValueAsync(); 176Assert.Equal(bool.FalseString, await tlsExpr.GetValueAsync()); 179Assert.Equal(bool.TrueString, await tlsExpr.GetValueAsync());
Dcp\DcpExecutorTests.cs (1)
3807Assert.Equal(allocatedPort.ToString(CultureInfo.InvariantCulture), await database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.Port).GetValueAsync());
EndpointReferenceTests.cs (12)
40var getValueTask = endpointExpr.GetValueAsync(CancellationToken.None); 60var url = await endpointExpr.GetValueAsync(CancellationToken.None); 74var getValueTask = hostExpr.GetValueAsync(CancellationToken.None); 93var getValueTask = portExpr.GetValueAsync(CancellationToken.None); 112var scheme = await schemeExpr.GetValueAsync(CancellationToken.None); 126var ipv4 = await ipv4Expr.GetValueAsync(CancellationToken.None); 140var targetPort = await targetPortExpr.GetValueAsync(CancellationToken.None); 154var getValueTask = targetPortExpr.GetValueAsync(CancellationToken.None); 174var getValueTask = endpointExpr.GetValueAsync(cts.Token); 193var task1 = expr1.GetValueAsync(CancellationToken.None); 194var task2 = expr2.GetValueAsync(CancellationToken.None); 195var task3 = expr3.GetValueAsync(CancellationToken.None);