4 instantiations of ManifestPublishingCallbackAnnotation
Aspire.Hosting (3)
ApplicationModel\ManifestPublishingCallbackAnnotation.cs (1)
47public static ManifestPublishingCallbackAnnotation Ignore { get; } = new(null);
ResourceBuilderExtensions.cs (2)
355return builder.WithAnnotation(new ManifestPublishingCallbackAnnotation(callback), ResourceAnnotationMutationBehavior.Replace); 388return builder.WithAnnotation(new ManifestPublishingCallbackAnnotation(callback), ResourceAnnotationMutationBehavior.Replace);
Aspire.Hosting.Azure (1)
AzureBicepResource.cs (1)
31Annotations.Add(new ManifestPublishingCallbackAnnotation(WriteToManifest));
22 references to ManifestPublishingCallbackAnnotation
Aspire.Hosting (12)
ApplicationModel\ManifestPublishingCallbackAnnotation.cs (3)
14/// Initializes a new instance of the <see cref="ManifestPublishingCallbackAnnotation"/> class with the specified callback. 30/// Initializes a new instance of the <see cref="ManifestPublishingCallbackAnnotation"/> class with the specified callback. 47public static ManifestPublishingCallbackAnnotation Ignore { get; } = new(null);
ApplicationModel\ResourceExtensions.cs (3)
388resource.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out var lastAnnotation) && lastAnnotation == ManifestPublishingCallbackAnnotation.Ignore;
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (1)
46dashboardResource.Annotations.Add(ManifestPublishingCallbackAnnotation.Ignore);
Publishing\ManifestPublishingContext.cs (4)
94if (resource.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out var manifestPublishingCallbackAnnotation)) 184if (deploymentTarget.DeploymentTarget.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out var manifestPublishingCallbackAnnotation) &&
ResourceBuilderExtensions.cs (1)
1102return builder.WithAnnotation(ManifestPublishingCallbackAnnotation.Ignore);
Aspire.Hosting.Azure.Tests (3)
AzureKeyVaultTests.cs (3)
189Assert.True(secretResource.Resource.TryGetAnnotationsOfType<ManifestPublishingCallbackAnnotation>(out var manifestAnnotations)); 190var annotation = Assert.Single(manifestAnnotations); 191Assert.Equal(ManifestPublishingCallbackAnnotation.Ignore, annotation);
Aspire.Hosting.Tests (7)
Dashboard\DashboardResourceTests.cs (3)
539var annotation = Assert.Single(dashboard.Annotations.OfType<ManifestPublishingCallbackAnnotation>()); 544Assert.Same(ManifestPublishingCallbackAnnotation.Ignore, annotation);
ExternalServiceTests.cs (3)
269Assert.True(externalService.Resource.TryGetAnnotationsOfType<ManifestPublishingCallbackAnnotation>(out var manifestAnnotations)); 270var annotation = Assert.Single(manifestAnnotations); 271Assert.Equal(ManifestPublishingCallbackAnnotation.Ignore, annotation);
PublishAsConnectionStringTests.cs (1)
18Assert.True(redis.Resource.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out _));