3 instantiations of DeploymentImageTagCallbackAnnotation
Aspire.Hosting (3)
ApplicationModel\ResourceExtensions.cs (2)
924return builder.WithAnnotation(new DeploymentImageTagCallbackAnnotation(callback)); 940return builder.WithAnnotation(new DeploymentImageTagCallbackAnnotation(callback));
Pipelines\DistributedApplicationPipeline.cs (1)
119resource.Annotations.Add(new DeploymentImageTagCallbackAnnotation(_ => uniqueDeployTag));
15 references to DeploymentImageTagCallbackAnnotation
Aspire.Hosting (5)
ApplicationModel\ContainerImageReference.cs (2)
44if (Resource.TryGetLastAnnotation<DeploymentImageTagCallbackAnnotation>(out var deploymentTag))
ApplicationModel\DeploymentImageTagAnnotation.cs (2)
34/// Initializes a new instance of the <see cref="DeploymentImageTagCallbackAnnotation"/> class with a synchronous callback. 44/// Initializes a new instance of the <see cref="DeploymentImageTagCallbackAnnotation"/> class with an asynchronous callback.
Pipelines\DistributedApplicationPipeline.cs (1)
114if (resource.TryGetLastAnnotation<DeploymentImageTagCallbackAnnotation>(out _))
Aspire.Hosting.Tests (10)
ResourceExtensionsTests.cs (10)
330var annotation = Assert.Single(containerResource.Resource.Annotations.OfType<DeploymentImageTagCallbackAnnotation>()); 371var annotations = containerResource.Resource.Annotations.OfType<DeploymentImageTagCallbackAnnotation>().ToList(); 393Assert.Single(containerResource.Resource.Annotations.OfType<DeploymentImageTagCallbackAnnotation>()); 398Assert.Single(projectResource.Resource.Annotations.OfType<DeploymentImageTagCallbackAnnotation>()); 403Assert.Single(executableResource.Resource.Annotations.OfType<DeploymentImageTagCallbackAnnotation>()); 415var annotation = Assert.Single(containerResource.Resource.Annotations.OfType<DeploymentImageTagCallbackAnnotation>()); 442var annotation = Assert.Single(containerResource.Resource.Annotations.OfType<DeploymentImageTagCallbackAnnotation>());