16 references to Callbacks
Aspire.Hosting (1)
ContainerResourceBuilderExtensions.cs (1)
1747foreach (var cb in annotation.Callbacks)
Aspire.Hosting.Tests (15)
ApplicationModel\Docker\DockerfileBuilderCallbackAnnotationTests.cs (11)
22Assert.NotNull(annotation.Callbacks); 23Assert.Single(annotation.Callbacks); 33Assert.NotNull(annotation.Callbacks); 34Assert.Empty(annotation.Callbacks); 57await annotation.Callbacks[0](context); 84await annotation.Callbacks[0](context); 111await annotation.Callbacks[0](context); 141await annotation.Callbacks[0](context); 160Assert.Equal(2, annotation.Callbacks.Count); 187foreach (var callback in annotation.Callbacks) 222foreach (var callback in annotation.Callbacks)
ApplicationModel\Docker\WithDockerfileBuilderTests.cs (4)
27Assert.Single(callbackAnnotation.Callbacks); 51Assert.Equal(2, callbackAnnotation.Callbacks.Count); 290Assert.Single(callbackAnnotation.Callbacks); 311Assert.Single(callbackAnnotation.Callbacks);