# HttpsCertificateConfigurationCallbackAnnotation Constructors

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

An annotation that indicates a resource wants to manage how it needs to be configured to use a specific TLS certificate pair.

## HttpsCertificateConfigurationCallbackAnnotation(Func<HttpsCertificateConfigurationCallbackAnnotationContext, Task>)

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

An annotation that indicates a resource wants to manage how it needs to be configured to use a specific TLS certificate pair.

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

## Parameters

- `callback` (`Func<HttpsCertificateConfigurationCallbackAnnotationContext, Task>`)
  The callback used to configure the resource to use a specific TLS certificate pair.
