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