Skip to content
Docs Try Aspire

ManifestPublishingCallbackAnnotation Constructors

Class Constructors 2 members
Represents an annotation that provides a callback to be executed during manifest publishing.
Constructor(Action<ManifestPublishingContext>) Section titled Constructor(Action<ManifestPublishingContext>)
Initializes a new instance of the ManifestPublishingCallbackAnnotation class with the specified callback.
public class ManifestPublishingCallbackAnnotation
{
public ManifestPublishingCallbackAnnotation(
Action<ManifestPublishingContext>? callback)
{
// ...
}
}
callback Action<ManifestPublishingContext> A callback which provides access to ManifestPublishingContext which can be used for controlling JSON output into the manifest.
Constructor(Func<ManifestPublishingContext, Task>) Section titled Constructor(Func<ManifestPublishingContext, Task>)
Initializes a new instance of the ManifestPublishingCallbackAnnotation class with the specified callback.
public class ManifestPublishingCallbackAnnotation
{
public ManifestPublishingCallbackAnnotation(
Func<ManifestPublishingContext, Task>? callback)
{
// ...
}
}
callback Func<ManifestPublishingContext, Task> A callback which provides access to ManifestPublishingContext which can be used for controlling JSON output into the manifest.