Implemented interface member:
method
GetValueAsync
Aspire.Hosting.ApplicationModel.IValueProvider.GetValueAsync(Aspire.Hosting.ApplicationModel.ValueProviderContext, System.Threading.CancellationToken)
9 references to GetValueAsync
Aspire.Hosting (3)
ApplicationModel\EndpointReference.cs (2)
158
public ValueTask<string?> GetValueAsync(ValueProviderContext context, CancellationToken cancellationToken = default) => Property(EndpointProperty.Url).
GetValueAsync
(context, cancellationToken);
382
return
GetValueAsync
(new(), cancellationToken);
ApplicationModel\HostUrl.cs (1)
84
var port = await targetEndpoint.Property(EndpointProperty.Port).
GetValueAsync
(context, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.EntraId (2)
EntraIdRunModeBrowserOrigin.cs (2)
33
var allocatedUrl = await endpoint.Property(EndpointProperty.Url).
GetValueAsync
(context, cancellationToken).ConfigureAwait(false);
38
return await endpoint.PrimaryBrowserOrigin.
GetValueAsync
(context, timeout.Token).ConfigureAwait(false);
Aspire.Hosting.Tests (4)
EndpointReferenceTests.cs (4)
390
var resultFromCaller = await expression.
GetValueAsync
(new ValueProviderContext
396
var resultFromNetwork = await expression.
GetValueAsync
(new ValueProviderContext
594
Assert.Equal("https://public.example", await container.PrimaryBrowserOrigin.
GetValueAsync
(
660
var value = expression.
GetValueAsync
(new ValueProviderContext { ExecutionContext = builder.ExecutionContext }, cts.Token);