6 instantiations of ManifestPublishingCallbackAnnotation
Aspire.Hosting (3)
ApplicationModel\ManifestPublishingCallbackAnnotation.cs (1)
47public static ManifestPublishingCallbackAnnotation Ignore { get; } = new(null);
ResourceBuilderExtensions.cs (2)
1015return builder.WithAnnotation(new ManifestPublishingCallbackAnnotation(callback), ResourceAnnotationMutationBehavior.Replace); 1033return builder.WithAnnotation(new ManifestPublishingCallbackAnnotation(callback), ResourceAnnotationMutationBehavior.Replace);
Aspire.Hosting.Azure (1)
AzureBicepResource.cs (1)
36Annotations.Add(new ManifestPublishingCallbackAnnotation(WriteToManifest));
Aspire.Hosting.Foundry (2)
HostedAgent\AzureHostedAgentResource.cs (1)
40Annotations.Add(new ManifestPublishingCallbackAnnotation(PublishAsync));
PromptAgent\AzurePromptAgentResource.cs (1)
61Annotations.Add(new ManifestPublishingCallbackAnnotation(PublishAsync));
58 references to ManifestPublishingCallbackAnnotation
Aspire.Hosting (13)
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);
ApplicationModel\ResourceExtensions.cs (3)
612resource.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out var lastAnnotation) && lastAnnotation == ManifestPublishingCallbackAnnotation.Ignore;
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (1)
48dashboardResource.Annotations.Add(ManifestPublishingCallbackAnnotation.Ignore);
Publishing\ManifestPublishingContext.cs (4)
117if (resource.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out var manifestPublishingCallbackAnnotation)) 220if (deploymentTarget.DeploymentTarget.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out var manifestPublishingCallbackAnnotation) &&
ResourceBuilderExtensions.cs (1)
2704return builder.WithAnnotation(ManifestPublishingCallbackAnnotation.Ignore);
TerminalResourceBuilderExtensions.cs (1)
378host.Annotations.Add(ManifestPublishingCallbackAnnotation.Ignore);
Aspire.Hosting.Azure (1)
AzureEnvironmentResource.cs (1)
155Annotations.Add(ManifestPublishingCallbackAnnotation.Ignore);
Aspire.Hosting.Azure.ConnectorNamespace (2)
AzureConnectorNamespaceExtensions.cs (2)
293connection.Annotations.Add(ManifestPublishingCallbackAnnotation.Ignore); 483config.Annotations.Add(ManifestPublishingCallbackAnnotation.Ignore);
Aspire.Hosting.Azure.EntraId.Tests (2)
EntraIdResourceBuilderTests.cs (2)
281Assert.True(entra.Resource.TryGetAnnotationsOfType<ManifestPublishingCallbackAnnotation>(out var annotations)); 282Assert.Equal(ManifestPublishingCallbackAnnotation.Ignore, annotations.Last());
Aspire.Hosting.Azure.Functions (2)
DurableTask\DurableTaskResourceExtensions.cs (2)
36scheduler.Annotations.Add(ManifestPublishingCallbackAnnotation.Ignore); 226hub.Annotations.Add(ManifestPublishingCallbackAnnotation.Ignore);
Aspire.Hosting.Azure.Kubernetes (2)
AzureKubernetesEnvironmentResource.AksPipeline.cs (2)
169defaultPool.Annotations.Add(ManifestPublishingCallbackAnnotation.Ignore); 197pool.Annotations.Add(ManifestPublishingCallbackAnnotation.Ignore);
Aspire.Hosting.Azure.Kubernetes.Tests (1)
AzureKubernetesEnvironmentExtensionsTests.cs (1)
790builder.AddAzureKubernetesEnvironment("aks").WithAnnotation(ManifestPublishingCallbackAnnotation.Ignore);
Aspire.Hosting.Azure.Sandboxes (2)
AzureSandboxCleanupResource.cs (1)
16Annotations.Add(ManifestPublishingCallbackAnnotation.Ignore);
AzureSandboxGroupResource.cs (1)
270sandboxContainer.Annotations.Add(ManifestPublishingCallbackAnnotation.Ignore);
Aspire.Hosting.Azure.Tests (15)
AzureConnectorNamespaceTests.cs (4)
186ManifestPublishingCallbackAnnotation.Ignore, 187Assert.Single(connection.Resource.Annotations.OfType<ManifestPublishingCallbackAnnotation>())); 189ManifestPublishingCallbackAnnotation.Ignore, 190Assert.Single(mcp.Resource.Annotations.OfType<ManifestPublishingCallbackAnnotation>()));
AzureKeyVaultTests.cs (3)
267Assert.True(secretResource.Resource.TryGetAnnotationsOfType<ManifestPublishingCallbackAnnotation>(out var manifestAnnotations)); 268var annotation = Assert.Single(manifestAnnotations); 269Assert.Equal(ManifestPublishingCallbackAnnotation.Ignore, annotation);
DurableTaskResourceExtensionsTests.cs (6)
101Assert.True(dts.Resource.TryGetAnnotationsOfType<ManifestPublishingCallbackAnnotation>(out var manifestAnnotations)); 102var annotation = Assert.Single(manifestAnnotations); 103Assert.Equal(ManifestPublishingCallbackAnnotation.Ignore, annotation); 114Assert.True(taskHub.Resource.TryGetAnnotationsOfType<ManifestPublishingCallbackAnnotation>(out var manifestAnnotations)); 115var annotation = Assert.Single(manifestAnnotations); 116Assert.Equal(ManifestPublishingCallbackAnnotation.Ignore, annotation);
ProvisioningContextProviderTests.cs (2)
75resource.Annotations.Add(ManifestPublishingCallbackAnnotation.Ignore); 142resource.Annotations.Add(ManifestPublishingCallbackAnnotation.Ignore);
Aspire.Hosting.Blazor.Tests (6)
AddBlazorWasmAppTests.cs (3)
46Assert.True(resource.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out var annotation)); 47Assert.Equal(ManifestPublishingCallbackAnnotation.Ignore, annotation);
WithBlazorAppTests.cs (3)
196Assert.True(debuggerResource.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out var manifestAnnotation)); 197Assert.Same(ManifestPublishingCallbackAnnotation.Ignore, manifestAnnotation);
Aspire.Hosting.Dotnet.Tests (2)
DotnetProjectBuildCoordinatorTests.cs (2)
67ManifestPublishingCallbackAnnotation.Ignore, 68Assert.Single(buildResource.Annotations.OfType<ManifestPublishingCallbackAnnotation>()));
Aspire.Hosting.Tests (10)
Dashboard\DashboardResourceTests.cs (3)
802var annotation = Assert.Single(dashboard.Annotations.OfType<ManifestPublishingCallbackAnnotation>()); 807Assert.Same(ManifestPublishingCallbackAnnotation.Ignore, annotation);
ExternalServiceTests.cs (3)
285Assert.True(externalService.Resource.TryGetAnnotationsOfType<ManifestPublishingCallbackAnnotation>(out var manifestAnnotations)); 286var annotation = Assert.Single(manifestAnnotations); 287Assert.Equal(ManifestPublishingCallbackAnnotation.Ignore, annotation);
PublishAsConnectionStringTests.cs (1)
22Assert.True(redis.Resource.TryGetLastAnnotation<ManifestPublishingCallbackAnnotation>(out _));
WithTerminalTests.cs (3)
298var manifestAnnotation = host.Annotations.OfType<ManifestPublishingCallbackAnnotation>().SingleOrDefault(); 300Assert.Same(ManifestPublishingCallbackAnnotation.Ignore, manifestAnnotation);