27 implementations of GetValueAsync
Aspire.Hosting (10)
ApplicationModel\ConnectionStringReference.cs (1)
24ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken)
ApplicationModel\ContainerImageReference.cs (1)
38ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken)
ApplicationModel\ContainerPortReference.cs (1)
25ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken)
ApplicationModel\EndpointReference.cs (2)
80public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default) => Property(EndpointProperty.Url).GetValueAsync(cancellationToken); 316public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
ApplicationModel\HostUrl.cs (1)
20ValueTask<string?> IValueProvider.GetValueAsync(System.Threading.CancellationToken cancellationToken) => ((IValueProvider)this).GetValueAsync(new(), cancellationToken);
ApplicationModel\HttpsCertificateExecutionConfigurationGatherer.cs (1)
163public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
ApplicationModel\IResourceWithConnectionString.cs (1)
21ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken) => GetConnectionStringAsync(cancellationToken);
ApplicationModel\ParameterResource.cs (1)
97public async ValueTask<string?> GetValueAsync(CancellationToken cancellationToken)
ApplicationModel\ReferenceExpression.cs (1)
225public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken)
Aspire.Hosting.Azure (2)
AzureBicepResource.cs (2)
592public async ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default) 649public async ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
Aspire.Hosting.Azure.KeyVault (2)
AzureKeyVaultSecretReference.cs (1)
32async ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken)
AzureKeyVaultSecretResource.cs (1)
54ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken) =>
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
1005public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
Aspire.Hosting.Foundry (1)
HostedAgent\AzureHostedAgentResource.cs (1)
245public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
Aspire.Hosting.JavaScript.Tests (1)
AddViteAppTests.cs (1)
643public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesPublisherTests.cs (1)
626public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
Aspire.Hosting.RemoteHost.Tests (3)
AtsMarshallerTests.cs (1)
1054public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
HandleRegistryTests.cs (1)
369public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
ReferenceExpressionRefTests.cs (1)
266public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken)
Aspire.Hosting.Tests (6)
ConditionalReferenceExpressionTests.cs (1)
108public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
ExpressionResolverTests.cs (1)
295public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
ReferenceExpressionTests.cs (2)
120public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default) 132public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default) => new(value);
WithEnvironmentTests.cs (2)
491public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default) 531public ValueTask<string?> GetValueAsync(CancellationToken cancellationToken = default)
21 references to GetValueAsync
Aspire.Hosting (5)
ApplicationModel\ConnectionStringReference.cs (1)
26return Resource.GetValueAsync(cancellationToken);
ApplicationModel\IValueProvider.cs (1)
43GetValueAsync(cancellationToken);
Dcp\DcpExecutor.cs (2)
2379IValueProvider valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false), 2409IValueProvider valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false),
Publishing\ResourceContainerImageManager.cs (1)
500IValueProvider valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false),
Aspire.Hosting.Azure (2)
Provisioning\BicepUtilities.cs (2)
55IValueProvider v => await v.GetValueAsync(cancellationToken).ConfigureAwait(false), 75IValueProvider v => await v.GetValueAsync(cancellationToken).ConfigureAwait(false),
Aspire.Hosting.Azure.KeyVault (1)
AzureKeyVaultSecretResource.cs (1)
55_secret.GetValueAsync(cancellationToken);
Aspire.Hosting.Azure.Tests (2)
AzureDeployerTests.cs (2)
1625Assert.Equal("Server=localhost;Database=mydb", await connectionStringParam.Resource.GetValueAsync(default)); 1680Assert.Equal("Server=localhost;Database=mydb", await connectionStringParam.Resource.GetValueAsync(default));
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentResource.cs (1)
367defaultValue = await ((IValueProvider)cir).GetValueAsync(context.CancellationToken).ConfigureAwait(false);
DockerComposeServiceResourceExtensions.cs (1)
66var conditionStr = await expr.Condition!.GetValueAsync(default).ConfigureAwait(false);
Aspire.Hosting.Docker.Tests (7)
DockerComposeTests.cs (7)
467var remoteImageName = await ((IValueProvider)containerImageReference).GetValueAsync(default); 492var remoteImageName = await ((IValueProvider)containerImageReference).GetValueAsync(default); 515var remoteImageName = await ((IValueProvider)containerImageReference).GetValueAsync(default); 539var remoteImageName = await ((IValueProvider)containerImageReference).GetValueAsync(default); 567var remoteImageName = await ((IValueProvider)containerImageReference).GetValueAsync(default); 592var remoteImageName = await ((IValueProvider)containerImageReference).GetValueAsync(default); 619var remoteImageName = await ((IValueProvider)containerImageReference).GetValueAsync(default);
Aspire.Hosting.Foundry (2)
HostedAgent\AzureHostedAgentResource.cs (2)
98var imageName = await ((IValueProvider)Image).GetValueAsync(context.CancellationToken).ConfigureAwait(false); 188resolvedEnvVars[key] = await provider.GetValueAsync(cancellationToken).ConfigureAwait(false) ?? string.Empty;