Implemented interface member:
method
GetValueAsync
Aspire.Hosting.ApplicationModel.IValueProvider.GetValueAsync(System.Threading.CancellationToken)
45 references to GetValueAsync
Aspire.Hosting (10)
ApplicationModel\HttpsCertificateExecutionConfigurationGatherer.cs (1)
61
Password = effectiveAnnotation.Password is not null ? await effectiveAnnotation.Password.
GetValueAsync
(cancellationToken).ConfigureAwait(false) : null,
ApplicationModel\ParameterResource.cs (3)
40
/// This property is obsolete. Use <see cref="
GetValueAsync
(CancellationToken)"/> for async access or pass the <see cref="ParameterResource"/> directly to methods that accept it (e.g., environment variables).
43
public string Value =>
GetValueAsync
(default).AsTask().GetAwaiter().GetResult()!;
130
return
GetValueAsync
(cancellationToken);
ExternalServiceBuilderExtensions.cs (3)
139
: await resource.UrlParameter.
GetValueAsync
(ct).ConfigureAwait(false);
215
/// <see cref="ParameterResource.
GetValueAsync
(CancellationToken)"/> on each probe, validates the URL, and then performs
414
var urlValue = await _urlParameter.
GetValueAsync
(cancellationToken).ConfigureAwait(false);
Orchestrator\ParameterProcessor.cs (1)
680
var value = await parameter.
GetValueAsync
(cancellationToken).ConfigureAwait(false);
ResourceBuilderExtensions.cs (2)
444
var url = await externalService.Resource.UrlParameter.
GetValueAsync
(context.CancellationToken).ConfigureAwait(false);
1344
else if (ExternalServiceResource.UrlIsValidForExternalService(await externalService.Resource.UrlParameter.
GetValueAsync
(context.CancellationToken).ConfigureAwait(false), out var uri, out var message))
Aspire.Hosting.Azure (1)
AzurePublishingContext.cs (1)
482
var value = await p.
GetValueAsync
(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebSiteResource.cs (1)
55
await computerEnv.DeploymentSlotParameter.
GetValueAsync
(ctx.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.Tests (9)
AzureDeployerTests.cs (8)
773
var setValue = await param.Resource.
GetValueAsync
(default);
847
var setValue = await param.Resource.
GetValueAsync
(default);
1036
var setValue = await dependentParam.
GetValueAsync
(default);
1081
var setValue = await portParam.
GetValueAsync
(default);
1868
Assert.Equal("secret-key-12345", await regularParam.Resource.
GetValueAsync
(default));
1870
Assert.Equal("custom-value-xyz", await customKeyParam.Resource.
GetValueAsync
(default));
1923
Assert.Equal("secret-key-12345", await regularParam.Resource.
GetValueAsync
(default));
1925
Assert.Equal("custom-value-xyz", await customKeyParam.Resource.
GetValueAsync
(default));
AzureManagedRedisExtensionsTests.cs (1)
65
Assert.Equal($"localhost:12455,password={await redisResource.PasswordParameter.
GetValueAsync
(CancellationToken.None)}{sslArg}", await redis.Resource.ConnectionStringExpression.GetValueAsync(CancellationToken.None));
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentResource.cs (1)
539
defaultValue ??= await parameter.
GetValueAsync
(context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Kubernetes (3)
Deployment\HelmDeploymentEngine.cs (1)
307
var resolvedValue = await captured.Parameter.
GetValueAsync
(cancellationToken).ConfigureAwait(false);
KubernetesEnvironmentResource.cs (1)
635
return (await parameter.
GetValueAsync
(cancellationToken).ConfigureAwait(false)) ?? string.Empty;
KubernetesPublishingContext.cs (1)
302
value = await parameter.
GetValueAsync
(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.MySql (1)
MySqlBuilderExtensions.cs (1)
424
var pwd = await mySqlInstance.PasswordParameter.
GetValueAsync
(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Nats (1)
NatsBuilderExtensions.cs (1)
80
Password = await nats.PasswordParameter!.
GetValueAsync
(ct).ConfigureAwait(false),
Aspire.Hosting.PostgreSQL (4)
PostgresBuilderExtensions.cs (4)
617
: await postgresDatabase.Parent.UserNameParameter.
GetValueAsync
(cancellationToken).ConfigureAwait(false);
619
var password = await postgresDatabase.Parent.PasswordParameter.
GetValueAsync
(cancellationToken).ConfigureAwait(false) ?? "password";
657
: await postgresInstance.UserNameParameter.
GetValueAsync
(cancellationToken).ConfigureAwait(false);
658
var password = await postgresInstance.PasswordParameter.
GetValueAsync
(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Radius (2)
Publishing\RadCredentialRegisterStep.cs (1)
246
return await parameter.Resource.
GetValueAsync
(cancellationToken).ConfigureAwait(false) ?? string.Empty;
Publishing\RadiusDeploymentPipelineStep.cs (1)
271
var value = await parameter.
GetValueAsync
(cancellationToken).ConfigureAwait(false) ?? string.Empty;
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
277
var password = await redisInstance.PasswordParameter.
GetValueAsync
(ct).ConfigureAwait(false);
Aspire.Hosting.Tests (11)
AddParameterTests.cs (4)
734
Assert.Equal("test-storage-account", await parameterResource.
GetValueAsync
(default));
758
Assert.Equal("dash-value", await parameterResource.
GetValueAsync
(default));
783
_ = await parameterResource.
GetValueAsync
(default);
807
Assert.Equal("custom-value", await parameterResource.
GetValueAsync
(default));
Orchestrator\ParameterProcessorTests.cs (7)
1102
Assert.Equal("newValue", await parameter.
GetValueAsync
(CancellationToken.None).DefaultTimeout());
1137
Assert.Equal("resolvedValue", await parameter.
GetValueAsync
(CancellationToken.None).DefaultTimeout());
1151
Assert.Equal("firstValue", await parameter.
GetValueAsync
(CancellationToken.None).DefaultTimeout());
1157
Assert.Equal("secondValue", await parameter.
GetValueAsync
(CancellationToken.None).DefaultTimeout());
1184
Assert.Equal("newValue", await parameter.
GetValueAsync
(CancellationToken.None).DefaultTimeout());
1598
Assert.Equal("newValue", await parameter.
GetValueAsync
(CancellationToken.None).DefaultTimeout());
1646
Assert.Equal("newValue", await parameter.
GetValueAsync
(CancellationToken.None).DefaultTimeout());