6 instantiations of ManifestPublishingCallbackAnnotation
Aspire.Hosting (3)
ApplicationModel\ManifestPublishingCallbackAnnotation.cs (1)
47
public static ManifestPublishingCallbackAnnotation Ignore { get; } =
new
(null);
ResourceBuilderExtensions.cs (2)
269
return builder.WithAnnotation(new
ManifestPublishingCallbackAnnotation
(callback), ResourceAnnotationMutationBehavior.Replace);
285
return builder.WithAnnotation(new
ManifestPublishingCallbackAnnotation
(callback), ResourceAnnotationMutationBehavior.Replace);
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppsInfrastructure.cs (1)
88
provisioningResource.Annotations.Add(new
ManifestPublishingCallbackAnnotation
(provisioningResource.WriteToManifest));
Aspire.Hosting.Dapr (2)
DaprDistributedApplicationLifecycleHook.cs (1)
232
new
ManifestPublishingCallbackAnnotation
(
IDistributedApplicationBuilderExtensions.cs (1)
54
.WithAnnotation(new
ManifestPublishingCallbackAnnotation
(context => WriteDaprComponentResourceToManifest(context, resource)));
20 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.
47
public static
ManifestPublishingCallbackAnnotation
Ignore { get; } = new(null);
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (1)
41
dashboardResource.Annotations.Add(
ManifestPublishingCallbackAnnotation
.Ignore);
Publishing\ManifestPublishingContext.cs (4)
92
if (resource.TryGetLastAnnotation<
ManifestPublishingCallbackAnnotation
>(out
var
manifestPublishingCallbackAnnotation))
181
if (deploymentTarget.DeploymentTarget.TryGetLastAnnotation<
ManifestPublishingCallbackAnnotation
>(out
var
manifestPublishingCallbackAnnotation) &&
ResourceBuilderExtensions.cs (1)
655
return builder.WithAnnotation(
ManifestPublishingCallbackAnnotation
.Ignore);
Aspire.Hosting.Azure.AppContainers (3)
AzureContainerAppsInfrastructure.cs (3)
45
if (r.TryGetLastAnnotation<
ManifestPublishingCallbackAnnotation
>(out
var
lastAnnotation) && lastAnnotation ==
ManifestPublishingCallbackAnnotation
.Ignore)
Aspire.Hosting.Dapr (1)
DaprDistributedApplicationLifecycleHook.cs (1)
229
daprCli.Annotations.Add(
ManifestPublishingCallbackAnnotation
.Ignore);
Aspire.Hosting.Tests (7)
Dashboard\DashboardResourceTests.cs (3)
516
var
annotation = Assert.Single(dashboard.Annotations.OfType<
ManifestPublishingCallbackAnnotation
>());
521
Assert.Same(
ManifestPublishingCallbackAnnotation
.Ignore, annotation);
PublishAsConnectionStringTests.cs (1)
19
Assert.True(redis.Resource.TryGetLastAnnotation<
ManifestPublishingCallbackAnnotation
>(out _));
PublishAsDockerfileTests.cs (3)
20
Assert.True(frontend.Resource.TryGetLastAnnotation<
ManifestPublishingCallbackAnnotation
>(out _));
55
Assert.True(frontend.Resource.TryGetLastAnnotation<
ManifestPublishingCallbackAnnotation
>(out _));
93
Assert.True(frontend.Resource.TryGetLastAnnotation<
ManifestPublishingCallbackAnnotation
>(out _));