3 instantiations of DeploymentImageTagCallbackAnnotation
Aspire.Hosting (3)
ApplicationModel\ResourceExtensions.cs (2)
924
return builder.WithAnnotation(new
DeploymentImageTagCallbackAnnotation
(callback));
940
return builder.WithAnnotation(new
DeploymentImageTagCallbackAnnotation
(callback));
Pipelines\DistributedApplicationPipeline.cs (1)
119
resource.Annotations.Add(new
DeploymentImageTagCallbackAnnotation
(_ => uniqueDeployTag));
15 references to DeploymentImageTagCallbackAnnotation
Aspire.Hosting (5)
ApplicationModel\ContainerImageReference.cs (2)
44
if (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)
114
if (resource.TryGetLastAnnotation<
DeploymentImageTagCallbackAnnotation
>(out _))
Aspire.Hosting.Tests (10)
ResourceExtensionsTests.cs (10)
330
var
annotation = Assert.Single(containerResource.Resource.Annotations.OfType<
DeploymentImageTagCallbackAnnotation
>());
371
var annotations = containerResource.Resource.Annotations.OfType<
DeploymentImageTagCallbackAnnotation
>().ToList();
393
Assert.Single(containerResource.Resource.Annotations.OfType<
DeploymentImageTagCallbackAnnotation
>());
398
Assert.Single(projectResource.Resource.Annotations.OfType<
DeploymentImageTagCallbackAnnotation
>());
403
Assert.Single(executableResource.Resource.Annotations.OfType<
DeploymentImageTagCallbackAnnotation
>());
415
var
annotation = Assert.Single(containerResource.Resource.Annotations.OfType<
DeploymentImageTagCallbackAnnotation
>());
442
var
annotation = Assert.Single(containerResource.Resource.Annotations.OfType<
DeploymentImageTagCallbackAnnotation
>());