16 references to Callbacks
Aspire.Hosting (1)
ContainerResourceBuilderExtensions.cs (1)
1475foreach (var cb in annotation.Callbacks)
Aspire.Hosting.Tests (15)
ApplicationModel\Docker\DockerfileBuilderCallbackAnnotationTests.cs (11)
24Assert.NotNull(annotation.Callbacks); 25Assert.Single(annotation.Callbacks); 35Assert.NotNull(annotation.Callbacks); 36Assert.Empty(annotation.Callbacks); 59await annotation.Callbacks[0](context); 86await annotation.Callbacks[0](context); 113await annotation.Callbacks[0](context); 143await annotation.Callbacks[0](context); 162Assert.Equal(2, annotation.Callbacks.Count); 189foreach (var callback in annotation.Callbacks) 224foreach (var callback in annotation.Callbacks)
ApplicationModel\Docker\WithDockerfileBuilderTests.cs (4)
29Assert.Single(callbackAnnotation.Callbacks); 53Assert.Equal(2, callbackAnnotation.Callbacks.Count); 292Assert.Single(callbackAnnotation.Callbacks); 313Assert.Single(callbackAnnotation.Callbacks);