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