3 implementations of EvaluateOnceAsync
Aspire.Hosting (3)
ApplicationModel\CommandLineArgsCallbackAnnotation.cs (1)
53Task<IList<object>> IArgCallbackAnnotation.EvaluateOnceAsync(CommandLineArgsCallbackContext context)
ApplicationModel\EnvironmentCallbackAnnotation.cs (1)
86Task<Dictionary<string, object>> IEnvCallbackAnnotation.EvaluateOnceAsync(EnvironmentCallbackContext context)
ApplicationModel\LaunchToolArgsCallbackAnnotation.cs (1)
93Task<IList<object>> IArgCallbackAnnotation.EvaluateOnceAsync(CommandLineArgsCallbackContext context)
14 references to EvaluateOnceAsync
Aspire.Hosting (10)
ApplicationModel\ArgumentsExecutionConfigurationGatherer.cs (2)
29args = await ann.AsCallbackAnnotation().EvaluateOnceAsync(callbackContext).ConfigureAwait(false); 75var launchToolArgs = await launchToolAnnotation.AsCallbackAnnotation().EvaluateOnceAsync(launchToolContext).ConfigureAwait(false);
ApplicationModel\EnvironmentVariablesConfigurationGatherer.cs (1)
27envVars = 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)
331return await annotation.AsCallbackAnnotation().EvaluateOnceAsync(context).ConfigureAwait(false); 1667var resultingVars = await ann.AsCallbackAnnotation().EvaluateOnceAsync(context).ConfigureAwait(false); 1709var 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)
266await annotation.AsCallbackAnnotation().EvaluateOnceAsync(