# CertificateTrustConfigurationCallbackAnnotation Constructors

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [CertificateTrustConfigurationCallbackAnnotation](/reference/api/csharp/aspire.hosting/certificatetrustconfigurationcallbackannotation.md)
- Kind: `Constructors`
- Members: `1`

An annotation that indicates a resource wants to manage how custom certificate trust is configured.

## CertificateTrustConfigurationCallbackAnnotation(Func<CertificateTrustConfigurationCallbackAnnotationContext, Task>)

- Name: `Constructor(Func<CertificateTrustConfigurationCallbackAnnotationContext, Task>)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CertificateTrustConfigurationCallbackAnnotation.cs#L13-L18)

An annotation that indicates a resource wants to manage how custom certificate trust is configured.

```csharp
public sealed class CertificateTrustConfigurationCallbackAnnotation
{
    public CertificateTrustConfigurationCallbackAnnotation(
        Func<CertificateTrustConfigurationCallbackAnnotationContext, Task> callback)
    {
        // ...
    }
}
```

## Parameters

- `callback` (`Func<CertificateTrustConfigurationCallbackAnnotationContext, Task>`)
  The callback used to customize certificate trust for the resource.
