42 references to SetValueAsync
Aspire.Hosting (4)
ApplicationModel\ParameterResource.cs (1)
257
/// or an empty string are faulted with <see cref="MissingParameterValueException"/>. Use <see cref="
SetValueAsync
(string?, CancellationToken)"/>
Orchestrator\ParameterProcessor.cs (3)
215
await parameterResource.
SetValueAsync
(value).ConfigureAwait(false);
590
await parameterResource.
SetValueAsync
(null, cancellationToken).ConfigureAwait(false);
629
await parameterResource.
SetValueAsync
(inputValue, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Tests (38)
AddParameterTests.cs (11)
112
await parameter.Resource.
SetValueAsync
(null).DefaultTimeout();
126
await parameter.Resource.
SetValueAsync
(null).DefaultTimeout();
162
await parameter.
SetValueAsync
("configured").DefaultTimeout();
167
await parameter.
SetValueAsync
().DefaultTimeout();
206
await parameter.
SetValueAsync
("second").DefaultTimeout();
220
await parameter.
SetValueAsync
(value).DefaultTimeout();
246
await parameter.
SetValueAsync
("current").DefaultTimeout();
267
var thrown = await Assert.ThrowsAsync<InvalidOperationException>(() => parameter.
SetValueAsync
("value")).DefaultTimeout();
279
await parameter.
SetValueAsync
("current").DefaultTimeout();
292
: parameter.
SetValueAsync
("replacement", cts.Token)).DefaultTimeout();
307
var aggregate = await Assert.ThrowsAsync<AggregateException>(() => parameter.
SetValueAsync
("value")).DefaultTimeout();
Orchestrator\ParameterProcessorTests.cs (27)
387
await parameterWithMissingValue.
SetValueAsync
(null).DefaultTimeout();
394
await parameterWithMissingValue.
SetValueAsync
(null).DefaultTimeout();
398
await parameterWithMissingValue.
SetValueAsync
("resolvedAgain").DefaultTimeout();
437
await parameter.
SetValueAsync
("resolved").DefaultTimeout();
439
await parameter.
SetValueAsync
(null).DefaultTimeout();
472
await parameter.
SetValueAsync
("cleanup").DefaultTimeout();
1550
await parameter.
SetValueAsync
("assigned-secret").DefaultTimeout();
1576
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => parameter.
SetValueAsync
("canceled-notification-secret", cts.Token)).DefaultTimeout();
1577
await parameter.
SetValueAsync
("replacement-secret").DefaultTimeout();
1597
var supersededUpdate = parameter.
SetValueAsync
("superseded-secret");
1601
await parameter.
SetValueAsync
("replacement-secret").DefaultTimeout();
1656
await firstParameter.
SetValueAsync
("programmatic-value").DefaultTimeout();
2112
await parameter.
SetValueAsync
(null).DefaultTimeout();
2132
await parameter.
SetValueAsync
("cleanupValue").DefaultTimeout();
2176
await parameter.
SetValueAsync
(null).DefaultTimeout();
2192
await parameter.
SetValueAsync
("cleanupValue").DefaultTimeout();
2193
await otherParameter.
SetValueAsync
("cleanupValue").DefaultTimeout();
2228
await parameter.
SetValueAsync
(null).DefaultTimeout();
2258
await parameter.
SetValueAsync
("resourceValue").DefaultTimeout();
2288
await parameter.
SetValueAsync
("resourceValue").DefaultTimeout();
2310
await parameter.
SetValueAsync
(null).DefaultTimeout();
2375
await parameter.
SetValueAsync
("resolvedValue").DefaultTimeout();
2398
var olderUpdate = parameter.
SetValueAsync
("olderValue");
2399
var latestUpdate = parameter.
SetValueAsync
(clearValue ? null : "latestValue", cts.Token);
2422
await parameter.
SetValueAsync
("resolvedValue").DefaultTimeout();
2433
await parameter.
SetValueAsync
("cleanupValue").DefaultTimeout();
2452
await parameter.
SetValueAsync
(null).DefaultTimeout();