# ManifestPublishingCallbackAnnotation

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ManifestPublishingCallbackAnnotation.cs)
- Implements: [IResourceAnnotation](/reference/api/csharp/aspire.hosting/iresourceannotation.md)

Represents an annotation that provides a callback to be executed during manifest publishing.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class ManifestPublishingCallbackAnnotation
    : Aspire.Hosting.ApplicationModel.IResourceAnnotation
{
    // ...
}
```

## Constructors

- [ManifestPublishingCallbackAnnotation(Action<ManifestPublishingContext>)](/reference/api/csharp/aspire.hosting/manifestpublishingcallbackannotation/constructors.md#constructor-action-manifestpublishingcontext) -- Initializes a new instance of the [ManifestPublishingCallbackAnnotation](/reference/api/csharp/aspire.hosting/manifestpublishingcallbackannotation.md) class with the specified callback.
- [ManifestPublishingCallbackAnnotation(Func<ManifestPublishingContext, Task>)](/reference/api/csharp/aspire.hosting/manifestpublishingcallbackannotation/constructors.md#constructor-func-manifestpublishingcontext-task) -- Initializes a new instance of the [ManifestPublishingCallbackAnnotation](/reference/api/csharp/aspire.hosting/manifestpublishingcallbackannotation.md) class with the specified callback.

## Properties

- [Callback](/reference/api/csharp/aspire.hosting/manifestpublishingcallbackannotation/properties.md#callback) : `Func<ManifestPublishingContext, Task>` `get` -- Gets the callback action for publishing the manifest.
- [Ignore](/reference/api/csharp/aspire.hosting/manifestpublishingcallbackannotation/properties.md#ignore) : [ManifestPublishingCallbackAnnotation](/reference/api/csharp/aspire.hosting/manifestpublishingcallbackannotation.md) `static` `get` -- Represents a `null` -based callback annotation for manifest publishing used in scenarios where it's ignored.
