41 implementations of GetValueAsync
Aspire.Hosting (10)
ApplicationModel\ConnectionStringReference.cs (1)
62ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken)
ApplicationModel\ContainerImageReference.cs (1)
40ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken)
ApplicationModel\ContainerPortReference.cs (1)
26ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken)
ApplicationModel\EndpointReference.cs (2)
149public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default) => Property(EndpointProperty.Url).GetValueAsync(cancellationToken); 380public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
ApplicationModel\HostUrl.cs (1)
21ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken) => ((IValueProvider)this).GetValueAsync(new(), cancellationToken);
ApplicationModel\HttpsCertificateExecutionConfigurationGatherer.cs (1)
189public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
ApplicationModel\IResourceWithConnectionString.cs (1)
21ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken) => GetConnectionStringAsync(cancellationToken);
ApplicationModel\ParameterResource.cs (1)
536public async ValueTask<string?> GetValueAsync(CancellationToken cancellationToken)
ApplicationModel\ReferenceExpression.cs (1)
225public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken)
Aspire.Hosting.Azure (2)
AzureBicepResource.cs (2)
549public async ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default) 606public async ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
Aspire.Hosting.Azure.EntraId (2)
EntraIdApplicationResource.cs (1)
1254public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
EntraIdRunModeBrowserOrigin.cs (1)
26public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default) =>
Aspire.Hosting.Azure.KeyVault (2)
AzureKeyVaultSecretReference.cs (1)
32async ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken)
AzureKeyVaultSecretResource.cs (1)
57ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken) =>
Aspire.Hosting.Azure.Sandboxes (1)
AzureSandboxEndpointPropertyValueProvider.cs (1)
46public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
Aspire.Hosting.Azure.Tests (2)
AzureApiManagementTests.cs (1)
3062ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken) =>
TestContextValueProvider.cs (1)
12public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default) =>
Aspire.Hosting.Blazor (1)
GatewayOriginReference.cs (1)
21public async ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
1521public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
Aspire.Hosting.Foundry (1)
HostedAgent\AzureHostedAgentResource.cs (1)
578public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
1638public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken) => valueProvider.GetValueAsync(cancellationToken);
Aspire.Hosting.JavaScript.Tests (1)
AddViteAppTests.cs (1)
1174public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
Aspire.Hosting.Kubernetes.Tests (1)
TestValueProvider.cs (1)
14public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
Aspire.Hosting.Maui (2)
MauiOtlpExtensions.cs (2)
572public async ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default) 602public async ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
Aspire.Hosting.Radius.Tests (2)
Publishing\BackingResourceValueResolutionTests.cs (2)
1425public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default) 1441public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
Aspire.Hosting.RemoteHost.Tests (3)
AtsMarshallerTests.cs (1)
1409public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
HandleRegistryTests.cs (1)
364public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
ReferenceExpressionRefTests.cs (1)
285public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken)
Aspire.Hosting.Tests (9)
ConditionalReferenceExpressionTests.cs (1)
228public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
Dcp\DcpExecutorTests.cs (1)
12343public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
ExpressionResolverTests.cs (1)
361public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
Orchestrator\ApplicationOrchestratorTests.cs (1)
2098public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
ReferenceExpressionTests.cs (2)
184public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default) 196public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default) => new(value);
Utils\TestManifestValue.cs (1)
15public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default) =>
WithEnvironmentTests.cs (2)
507public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default) 547public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
38 references to GetValueAsync
Aspire.Hosting (5)
ApplicationModel\ConnectionStringReference.cs (1)
66: Resource.GetValueAsync(cancellationToken);
ApplicationModel\IValueProvider.cs (1)
43GetValueAsync(cancellationToken);
Dcp\ContainerCreator.cs (2)
626IValueProvider valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false), 642IValueProvider valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false),
Publishing\ResourceContainerImageManager.cs (1)
1065IValueProvider valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false),
Aspire.Hosting.Azure (2)
Provisioning\BicepUtilities.cs (1)
216IValueProvider v => await v.GetValueAsync(cancellationToken).ConfigureAwait(false),
Provisioning\Provisioners\BicepProvisioner.cs (1)
1290IValueProvider valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false) ?? throw new InvalidOperationException("The Azure resource scope value cannot be null."),
Aspire.Hosting.Azure.EntraId (1)
EntraIdApplicationResource.cs (1)
1255=> ((IValueProvider)ClientId).GetValueAsync(cancellationToken);
Aspire.Hosting.Azure.KeyVault (1)
AzureKeyVaultSecretResource.cs (1)
58_secret.GetValueAsync(cancellationToken);
Aspire.Hosting.Azure.Kubernetes (2)
AzureKubernetesEnvironmentResource.AksPipeline.cs (2)
487var subnetId = await ((IValueProvider)lb.SubnetIdReference).GetValueAsync(context.CancellationToken).ConfigureAwait(false); 723await provider.GetValueAsync(cancellationToken).ConfigureAwait(false) is { Length: > 0 } resolved => resolved,
Aspire.Hosting.Azure.Tests (2)
AzureDeployerTests.cs (2)
2120Assert.Equal("Server=localhost;Database=mydb", await connectionStringParam.Resource.GetValueAsync(default)); 2176Assert.Equal("Server=localhost;Database=mydb", await connectionStringParam.Resource.GetValueAsync(default));
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentResource.cs (1)
576defaultValue = await vp.GetValueAsync(context.CancellationToken).ConfigureAwait(false);
DockerComposeServiceResourceExtensions.cs (1)
77var conditionStr = await expr.Condition!.GetValueAsync(default).ConfigureAwait(false);
Aspire.Hosting.Docker.Tests (7)
DockerComposeTests.cs (7)
527var remoteImageName = await ((IValueProvider)containerImageReference).GetValueAsync(default); 552var remoteImageName = await ((IValueProvider)containerImageReference).GetValueAsync(default); 575var remoteImageName = await ((IValueProvider)containerImageReference).GetValueAsync(default); 599var remoteImageName = await ((IValueProvider)containerImageReference).GetValueAsync(default); 627var remoteImageName = await ((IValueProvider)containerImageReference).GetValueAsync(default); 652var remoteImageName = await ((IValueProvider)containerImageReference).GetValueAsync(default); 682var remoteImageName = await ((IValueProvider)containerImageReference).GetValueAsync(default);
Aspire.Hosting.Foundry (1)
HostedAgent\AzureHostedAgentResource.cs (1)
108var imageName = await ((IValueProvider)Image).GetValueAsync(context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
1638public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken) => valueProvider.GetValueAsync(cancellationToken);
Aspire.Hosting.Kubernetes (4)
Deployment\HelmDeploymentEngine.cs (2)
334var resolvedImage = await cir.GetValueAsync(cancellationToken).ConfigureAwait(false); 348var resolvedValue = await valueProviderRef.ValueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false);
KubernetesEnvironmentResource.cs (1)
714return (await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false)) ?? string.Empty;
KubernetesPublishingContext.cs (1)
357paramValues[valuesKey] = await imageReference.GetValueAsync(cancellationToken).ConfigureAwait(false)
Aspire.Hosting.MongoDB (1)
MongoDBBuilderExtensions.cs (1)
622Contents = await keyValue.GetValueAsync(ct).ConfigureAwait(false),
Aspire.Hosting.Qdrant.Tests (1)
AddQdrantTests.cs (1)
236await ((IValueProvider)httpReference).GetValueAsync(CancellationToken.None));
Aspire.Hosting.Tests (8)
ProjectResourceBuilderExtensionTests.cs (6)
163Assert.Equal("/etc/ssl/certs/server.pfx", await certificatePath.GetValueAsync()); 193Assert.Equal("/etc/ssl/certs/server.pfx", await certificatePath.GetValueAsync()); 259Assert.Equal("/etc/ssl/certs/server.crt", await certificatePath.GetValueAsync()); 260Assert.Equal("/etc/ssl/private/server.key", await keyPath.GetValueAsync()); 464Assert.Equal("/etc/ssl/certs/server.pfx", await certificatePath.GetValueAsync()); 503Assert.Equal("/etc/ssl/certs/server.pfx", await certificatePath.GetValueAsync());
WithReferenceTests.cs (2)
168Assert.Null(await provider.GetValueAsync(CancellationToken.None)); 181Assert.Equal("Host=after", await provider.GetValueAsync(CancellationToken.None));