13 references to AsCallbackAnnotation
Aspire.Hosting (3)
ApplicationModel\EnvironmentVariablesConfigurationGatherer.cs (1)
36
envVars = await ann.
AsCallbackAnnotation
().EvaluateOnceAsync(callbackContext).ConfigureAwait(false);
ApplicationModel\ResourceExtensions.cs (2)
1660
if (ann.
AsCallbackAnnotation
().TryGetCachedResult(out var cachedTask) &&
1676
var resultingVars = await ann.
AsCallbackAnnotation
().EvaluateOnceAsync(context).ConfigureAwait(false);
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectBuildCoordinatorTests.cs (1)
5148
environmentCallback.
AsCallbackAnnotation
().ForgetCachedResult();
Aspire.Hosting.Tests (9)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (8)
587
environmentCallback.
AsCallbackAnnotation
().ForgetCachedResult();
661
environmentCallback.
AsCallbackAnnotation
().ForgetCachedResult();
985
Assert.False(annotation.
AsCallbackAnnotation
().TryGetCachedResult(out var cached));
990
async () => await annotation.
AsCallbackAnnotation
()
1041
Assert.False(annotation.
AsCallbackAnnotation
().TryGetCachedResult(out var cached));
1047
var evaluated = await annotation.
AsCallbackAnnotation
()
1051
Assert.True(annotation.
AsCallbackAnnotation
().TryGetCachedResult(out var cachedAfter));
1251
await annotation.
AsCallbackAnnotation
()
ResourceDependencyTests.cs (1)
268
await annotation.
AsCallbackAnnotation
().EvaluateOnceAsync(