3 implementations of EvaluateOnceAsync
Aspire.Hosting (3)
ApplicationModel\CommandLineArgsCallbackAnnotation.cs (1)
53
Task<IList<object>> IArgCallbackAnnotation.
EvaluateOnceAsync
(CommandLineArgsCallbackContext context)
ApplicationModel\EnvironmentCallbackAnnotation.cs (1)
86
Task<Dictionary<string, object>> IEnvCallbackAnnotation.
EvaluateOnceAsync
(EnvironmentCallbackContext context)
ApplicationModel\LaunchToolArgsCallbackAnnotation.cs (1)
93
Task<IList<object>> IArgCallbackAnnotation.
EvaluateOnceAsync
(CommandLineArgsCallbackContext context)
14 references to EvaluateOnceAsync
Aspire.Hosting (10)
ApplicationModel\ArgumentsExecutionConfigurationGatherer.cs (2)
29
args = await ann.AsCallbackAnnotation().
EvaluateOnceAsync
(callbackContext).ConfigureAwait(false);
75
var launchToolArgs = await launchToolAnnotation.AsCallbackAnnotation().
EvaluateOnceAsync
(launchToolContext).ConfigureAwait(false);
ApplicationModel\EnvironmentVariablesConfigurationGatherer.cs (1)
27
envVars = await ann.AsCallbackAnnotation().
EvaluateOnceAsync
(callbackContext).ConfigureAwait(false);
ApplicationModel\ICallbackResourceAnnotation.cs (3)
27
/// <see cref="
EvaluateOnceAsync
"/>; otherwise <see langword="null"/>.
33
/// This is a read-only peek: unlike <see cref="
EvaluateOnceAsync
"/> it never invokes the callback and never
42
/// Clears the cached result so that the next call to <see cref="
EvaluateOnceAsync
"/> will re-execute the callback.
ApplicationModel\ResourceDependencyDiscoveryOptions.cs (1)
25
/// <see cref="ICallbackResourceAnnotation{TContext, TResult}.
EvaluateOnceAsync
"/> call and never invokes a
ApplicationModel\ResourceExtensions.cs (3)
331
return await annotation.AsCallbackAnnotation().
EvaluateOnceAsync
(context).ConfigureAwait(false);
1667
var resultingVars = await ann.AsCallbackAnnotation().
EvaluateOnceAsync
(context).ConfigureAwait(false);
1709
var resultingArgs = await ann.AsCallbackAnnotation().
EvaluateOnceAsync
(context).ConfigureAwait(false);
Aspire.Hosting.Tests (4)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (3)
944
.
EvaluateOnceAsync
(new EnvironmentCallbackContext(executionContext, owner.Resource, new Dictionary<string, object>()))
1001
.
EvaluateOnceAsync
(new EnvironmentCallbackContext(executionContext, owner.Resource, new Dictionary<string, object>()))
1205
.
EvaluateOnceAsync
(new EnvironmentCallbackContext(executionContext, resource, new Dictionary<string, object>()))
ResourceDependencyTests.cs (1)
266
await annotation.AsCallbackAnnotation().
EvaluateOnceAsync
(