3 instantiations of DeploymentImageTagCallbackAnnotation
Aspire.Hosting (2)
ApplicationModel\ResourceExtensions.cs (2)
746return builder.WithAnnotation(new DeploymentImageTagCallbackAnnotation(callback)); 762return builder.WithAnnotation(new DeploymentImageTagCallbackAnnotation(callback));
Aspire.Hosting.Azure (1)
AzureDeployingContext.cs (1)
180resource.Annotations.Add(new DeploymentImageTagCallbackAnnotation(_ => deploymentTag));
15 references to DeploymentImageTagCallbackAnnotation
Aspire.Hosting (4)
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.
Aspire.Hosting.Azure (1)
AzureDeployingContext.cs (1)
176if (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>());