4 instantiations of ManifestPublishingCallbackAnnotation
Aspire.Hosting (3)
ApplicationModel\ManifestPublishingCallbackAnnotation.cs (1)
47
public static ManifestPublishingCallbackAnnotation Ignore { get; } =
new
(null);
ResourceBuilderExtensions.cs (2)
393
return builder.WithAnnotation(new
ManifestPublishingCallbackAnnotation
(callback), ResourceAnnotationMutationBehavior.Replace);
409
return builder.WithAnnotation(new
ManifestPublishingCallbackAnnotation
(callback), ResourceAnnotationMutationBehavior.Replace);
Aspire.Hosting.Azure (1)
AzureBicepResource.cs (1)
41
Annotations.Add(new
ManifestPublishingCallbackAnnotation
(WriteToManifest));
23 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.
47
public static
ManifestPublishingCallbackAnnotation
Ignore { get; } = new(null);
ApplicationModel\ResourceExtensions.cs (3)
543
resource.TryGetLastAnnotation<
ManifestPublishingCallbackAnnotation
>(out
var
lastAnnotation) && lastAnnotation ==
ManifestPublishingCallbackAnnotation
.Ignore;
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (1)
46
dashboardResource.Annotations.Add(
ManifestPublishingCallbackAnnotation
.Ignore);
Publishing\ManifestPublishingContext.cs (4)
113
if (resource.TryGetLastAnnotation<
ManifestPublishingCallbackAnnotation
>(out
var
manifestPublishingCallbackAnnotation))
210
if (deploymentTarget.DeploymentTarget.TryGetLastAnnotation<
ManifestPublishingCallbackAnnotation
>(out
var
manifestPublishingCallbackAnnotation) &&
ResourceBuilderExtensions.cs (1)
1422
return builder.WithAnnotation(
ManifestPublishingCallbackAnnotation
.Ignore);
Aspire.Hosting.Azure (1)
AzureEnvironmentResource.cs (1)
119
Annotations.Add(
ManifestPublishingCallbackAnnotation
.Ignore);
Aspire.Hosting.Azure.Tests (3)
AzureKeyVaultTests.cs (3)
267
Assert.True(secretResource.Resource.TryGetAnnotationsOfType<
ManifestPublishingCallbackAnnotation
>(out var manifestAnnotations));
268
var
annotation = Assert.Single(manifestAnnotations);
269
Assert.Equal(
ManifestPublishingCallbackAnnotation
.Ignore, annotation);
Aspire.Hosting.Tests (7)
Dashboard\DashboardResourceTests.cs (3)
613
var
annotation = Assert.Single(dashboard.Annotations.OfType<
ManifestPublishingCallbackAnnotation
>());
618
Assert.Same(
ManifestPublishingCallbackAnnotation
.Ignore, annotation);
ExternalServiceTests.cs (3)
264
Assert.True(externalService.Resource.TryGetAnnotationsOfType<
ManifestPublishingCallbackAnnotation
>(out var manifestAnnotations));
265
var
annotation = Assert.Single(manifestAnnotations);
266
Assert.Equal(
ManifestPublishingCallbackAnnotation
.Ignore, annotation);
PublishAsConnectionStringTests.cs (1)
18
Assert.True(redis.Resource.TryGetLastAnnotation<
ManifestPublishingCallbackAnnotation
>(out _));