3 instantiations of ContainerImagePushOptionsCallbackAnnotation
Aspire.Hosting (3)
Pipelines\DistributedApplicationPipeline.cs (1)
132
resource.Annotations.Add(new
ContainerImagePushOptionsCallbackAnnotation
(context =>
ResourceBuilderExtensions.cs (2)
3156
return builder.WithAnnotation(new
ContainerImagePushOptionsCallbackAnnotation
(callback));
3195
return builder.WithAnnotation(new
ContainerImagePushOptionsCallbackAnnotation
(callback));
17 references to ContainerImagePushOptionsCallbackAnnotation
Aspire.Hosting (5)
ApplicationModel\ContainerImagePushOptionsCallbackAnnotation.cs (2)
22
/// Initializes a new instance of the <see cref="
ContainerImagePushOptionsCallbackAnnotation
"/> class.
38
/// Initializes a new instance of the <see cref="
ContainerImagePushOptionsCallbackAnnotation
"/> class.
ApplicationModel\ResourceExtensions.cs (2)
1119
var callbacks = resource.Annotations.OfType<
ContainerImagePushOptionsCallbackAnnotation
>();
1121
foreach (
var
callback in callbacks)
Pipelines\DistributedApplicationPipeline.cs (1)
127
if (resource.Annotations.OfType<
ContainerImagePushOptionsCallbackAnnotation
>().Any())
Aspire.Hosting.Tests (12)
ResourceExtensionsTests.cs (12)
316
var
annotation = Assert.Single(containerResource.Resource.Annotations.OfType<
ContainerImagePushOptionsCallbackAnnotation
>());
363
var annotations = containerResource.Resource.Annotations.OfType<
ContainerImagePushOptionsCallbackAnnotation
>().ToList();
393
Assert.Single(containerResource.Resource.Annotations.OfType<
ContainerImagePushOptionsCallbackAnnotation
>());
397
Assert.Single(projectResource.Resource.Annotations.OfType<
ContainerImagePushOptionsCallbackAnnotation
>());
401
Assert.Single(executableResource.Resource.Annotations.OfType<
ContainerImagePushOptionsCallbackAnnotation
>());
418
var
annotation = Assert.Single(containerResource.Resource.Annotations.OfType<
ContainerImagePushOptionsCallbackAnnotation
>());
445
var
annotation = Assert.Single(containerResource.Resource.Annotations.OfType<
ContainerImagePushOptionsCallbackAnnotation
>());
457
var
annotation = Assert.Single(containerResource.Resource.Annotations.OfType<
ContainerImagePushOptionsCallbackAnnotation
>());