16 references to Callbacks
Aspire.Hosting (1)
ContainerResourceBuilderExtensions.cs (1)
1356foreach (var cb in annotation.Callbacks)
Aspire.Hosting.Tests (15)
ApplicationModel\Docker\DockerfileBuilderCallbackAnnotationTests.cs (11)
23Assert.NotNull(annotation.Callbacks); 24Assert.Single(annotation.Callbacks); 34Assert.NotNull(annotation.Callbacks); 35Assert.Empty(annotation.Callbacks); 58await annotation.Callbacks[0](context); 85await annotation.Callbacks[0](context); 112await annotation.Callbacks[0](context); 142await annotation.Callbacks[0](context); 161Assert.Equal(2, annotation.Callbacks.Count); 188foreach (var callback in annotation.Callbacks) 223foreach (var callback in annotation.Callbacks)
ApplicationModel\Docker\WithDockerfileBuilderTests.cs (4)
28Assert.Single(callbackAnnotation.Callbacks); 52Assert.Equal(2, callbackAnnotation.Callbacks.Count); 291Assert.Single(callbackAnnotation.Callbacks); 312Assert.Single(callbackAnnotation.Callbacks);