4 instantiations of ManifestPublishingCallbackAnnotation
Aspire.Hosting (3)
ApplicationModel\ManifestPublishingCallbackAnnotation.cs (1)
47
public static ManifestPublishingCallbackAnnotation Ignore { get; } =
new
(null);
ResourceBuilderExtensions.cs (2)
355
return builder.WithAnnotation(new
ManifestPublishingCallbackAnnotation
(callback), ResourceAnnotationMutationBehavior.Replace);
388
return builder.WithAnnotation(new
ManifestPublishingCallbackAnnotation
(callback), ResourceAnnotationMutationBehavior.Replace);
Aspire.Hosting.Azure (1)
AzureBicepResource.cs (1)
31
Annotations.Add(new
ManifestPublishingCallbackAnnotation
(WriteToManifest));
22 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)
388
resource.TryGetLastAnnotation<
ManifestPublishingCallbackAnnotation
>(out
var
lastAnnotation) && lastAnnotation ==
ManifestPublishingCallbackAnnotation
.Ignore;
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (1)
46
dashboardResource.Annotations.Add(
ManifestPublishingCallbackAnnotation
.Ignore);
Publishing\ManifestPublishingContext.cs (4)
94
if (resource.TryGetLastAnnotation<
ManifestPublishingCallbackAnnotation
>(out
var
manifestPublishingCallbackAnnotation))
184
if (deploymentTarget.DeploymentTarget.TryGetLastAnnotation<
ManifestPublishingCallbackAnnotation
>(out
var
manifestPublishingCallbackAnnotation) &&
ResourceBuilderExtensions.cs (1)
1102
return builder.WithAnnotation(
ManifestPublishingCallbackAnnotation
.Ignore);
Aspire.Hosting.Azure.Tests (3)
AzureKeyVaultTests.cs (3)
189
Assert.True(secretResource.Resource.TryGetAnnotationsOfType<
ManifestPublishingCallbackAnnotation
>(out var manifestAnnotations));
190
var
annotation = Assert.Single(manifestAnnotations);
191
Assert.Equal(
ManifestPublishingCallbackAnnotation
.Ignore, annotation);
Aspire.Hosting.Tests (7)
Dashboard\DashboardResourceTests.cs (3)
539
var
annotation = Assert.Single(dashboard.Annotations.OfType<
ManifestPublishingCallbackAnnotation
>());
544
Assert.Same(
ManifestPublishingCallbackAnnotation
.Ignore, annotation);
ExternalServiceTests.cs (3)
269
Assert.True(externalService.Resource.TryGetAnnotationsOfType<
ManifestPublishingCallbackAnnotation
>(out var manifestAnnotations));
270
var
annotation = Assert.Single(manifestAnnotations);
271
Assert.Equal(
ManifestPublishingCallbackAnnotation
.Ignore, annotation);
PublishAsConnectionStringTests.cs (1)
18
Assert.True(redis.Resource.TryGetLastAnnotation<
ManifestPublishingCallbackAnnotation
>(out _));