5 instantiations of ManifestPublishingCallbackAnnotation
Aspire.Hosting (3)
ApplicationModel\ManifestPublishingCallbackAnnotation.cs (1)
47public static ManifestPublishingCallbackAnnotation Ignore { get; } = new(null);
ResourceBuilderExtensions.cs (2)
220return builder.WithAnnotation(new ManifestPublishingCallbackAnnotation(callback), ResourceAnnotationMutationBehavior.Replace); 233return builder.WithAnnotation(new ManifestPublishingCallbackAnnotation(callback), ResourceAnnotationMutationBehavior.Replace);
Aspire.Hosting.Dapr (2)
DaprDistributedApplicationLifecycleHook.cs (1)
219new ManifestPublishingCallbackAnnotation(
IDistributedApplicationBuilderExtensions.cs (1)
55.WithAnnotation(new ManifestPublishingCallbackAnnotation(context => WriteDaprComponentResourceToManifest(context, resource)));
15 references to ManifestPublishingCallbackAnnotation
Aspire.Hosting (7)
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)
15dashboardResource.Annotations.Add(ManifestPublishingCallbackAnnotation.Ignore);
Publishing\ManifestPublishingContext.cs (2)
92if (resource.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out var manifestPublishingCallbackAnnotation))
ResourceBuilderExtensions.cs (1)
568return builder.WithAnnotation(ManifestPublishingCallbackAnnotation.Ignore);
Aspire.Hosting.Dapr (1)
DaprDistributedApplicationLifecycleHook.cs (1)
216daprCli.Annotations.Add(ManifestPublishingCallbackAnnotation.Ignore);
Aspire.Hosting.Tests (7)
Dashboard\DashboardResourceTests.cs (3)
478var annotation = Assert.Single(dashboard.Annotations.OfType<ManifestPublishingCallbackAnnotation>()); 483Assert.Same(ManifestPublishingCallbackAnnotation.Ignore, annotation);
PublishAsConnectionStringTests.cs (1)
18Assert.True(redis.Resource.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out _));
PublishAsDockerfileTests.cs (3)
19Assert.True(frontend.Resource.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out _)); 54Assert.True(frontend.Resource.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out _)); 92Assert.True(frontend.Resource.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out _));