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