4 instantiations of ManifestPublishingCallbackAnnotation
Aspire.Hosting (3)
ApplicationModel\ManifestPublishingCallbackAnnotation.cs (1)
47public static ManifestPublishingCallbackAnnotation Ignore { get; } = new(null);
ResourceBuilderExtensions.cs (2)
284return builder.WithAnnotation(new ManifestPublishingCallbackAnnotation(callback), ResourceAnnotationMutationBehavior.Replace); 316return builder.WithAnnotation(new ManifestPublishingCallbackAnnotation(callback), ResourceAnnotationMutationBehavior.Replace);
Aspire.Hosting.Azure (1)
AzureBicepResource.cs (1)
31Annotations.Add(new ManifestPublishingCallbackAnnotation(WriteToManifest));
28 references to ManifestPublishingCallbackAnnotation
Aspire.Hosting (9)
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);
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (1)
41dashboardResource.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)
984return builder.WithAnnotation(ManifestPublishingCallbackAnnotation.Ignore);
Aspire.Hosting.Azure (3)
AzureResourcePreparer.cs (3)
127if (resource.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out var lastAnnotation) && lastAnnotation == ManifestPublishingCallbackAnnotation.Ignore)
Aspire.Hosting.Azure.AppContainers (3)
AzureContainerAppsInfrastructure.cs (3)
50if (r.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out var lastAnnotation) && lastAnnotation == ManifestPublishingCallbackAnnotation.Ignore)
Aspire.Hosting.Azure.AppService (3)
AzureAppServiceInfrastructure.cs (3)
34if (resource.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out var lastAnnotation) && lastAnnotation == ManifestPublishingCallbackAnnotation.Ignore)
Aspire.Hosting.Docker (3)
DockerComposeInfrastructure.cs (3)
44if (r.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out var lastAnnotation) && lastAnnotation == ManifestPublishingCallbackAnnotation.Ignore)
Aspire.Hosting.Kubernetes (3)
KubernetesInfrastructure.cs (3)
44if (r.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out var lastAnnotation) && lastAnnotation == ManifestPublishingCallbackAnnotation.Ignore)
Aspire.Hosting.Tests (4)
Dashboard\DashboardResourceTests.cs (3)
528var annotation = Assert.Single(dashboard.Annotations.OfType<ManifestPublishingCallbackAnnotation>()); 533Assert.Same(ManifestPublishingCallbackAnnotation.Ignore, annotation);
PublishAsConnectionStringTests.cs (1)
19Assert.True(redis.Resource.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out _));