# HttpsCertificateConfigurationCallbackAnnotationContext

- 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/HttpsCertificateConfigurationCallbackAnnotaion.cs)

Context provided to a [HttpsCertificateConfigurationCallbackAnnotation](/reference/api/csharp/aspire.hosting/httpscertificateconfigurationcallbackannotation.md) callback.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class HttpsCertificateConfigurationCallbackAnnotationContext
{
    // ...
}
```

## Constructors

- [HttpsCertificateConfigurationCallbackAnnotationContext](/reference/api/csharp/aspire.hosting/httpscertificateconfigurationcallbackannotationcontext/constructors.md#constructor)

## Properties

- [Arguments](/reference/api/csharp/aspire.hosting/httpscertificateconfigurationcallbackannotationcontext/properties.md#arguments) : `List<object>` `get; init` -- Gets the command line arguments associated with the callback context. Values can be either a string or a path value provider such as [HttpsCertificateConfigurationCallbackAnnotationContext.CertificatePath](/reference/api/csharp/aspire.hosting/httpscertificateconfigurationcallbackannotationcontext/properties.md#certificatepath) or [HttpsCertificateConfigurationCallbackAnnotationContext.KeyPath](/reference/api/csharp/aspire.hosting/httpscertificateconfigurationcallbackannotationcontext/properties.md#keypath).
- [CancellationToken](/reference/api/csharp/aspire.hosting/httpscertificateconfigurationcallbackannotationcontext/properties.md#cancellationtoken) : `CancellationToken` `get; init` -- Gets the [HttpsCertificateConfigurationCallbackAnnotationContext.CancellationToken](/reference/api/csharp/aspire.hosting/httpscertificateconfigurationcallbackannotationcontext/properties.md#cancellationtoken) that can be used to cancel the operation.
- [CertificatePath](/reference/api/csharp/aspire.hosting/httpscertificateconfigurationcallbackannotationcontext/properties.md#certificatepath) : [ReferenceExpression](/reference/api/csharp/aspire.hosting/referenceexpression.md) `get; init` -- A value provider that will resolve to a path to the certificate file.
- [EnvironmentVariables](/reference/api/csharp/aspire.hosting/httpscertificateconfigurationcallbackannotationcontext/properties.md#environmentvariables) : `Dictionary<string, object>` `get; init` -- Gets the environment variables required to configure a certificate key pair for the resource. The dictionary key is the environment variable name; the value can be either a string or a path value provider such as [HttpsCertificateConfigurationCallbackAnnotationContext.CertificatePath](/reference/api/csharp/aspire.hosting/httpscertificateconfigurationcallbackannotationcontext/properties.md#certificatepath) or [HttpsCertificateConfigurationCallbackAnnotationContext.KeyPath](/reference/api/csharp/aspire.hosting/httpscertificateconfigurationcallbackannotationcontext/properties.md#keypath).
- [ExecutionContext](/reference/api/csharp/aspire.hosting/httpscertificateconfigurationcallbackannotationcontext/properties.md#executioncontext) : [DistributedApplicationExecutionContext](/reference/api/csharp/aspire.hosting/distributedapplicationexecutioncontext.md) `get; init` -- Gets the [DistributedApplicationExecutionContext](/reference/api/csharp/aspire.hosting/distributedapplicationexecutioncontext.md) for this session.
- [KeyPath](/reference/api/csharp/aspire.hosting/httpscertificateconfigurationcallbackannotationcontext/properties.md#keypath) : [ReferenceExpression](/reference/api/csharp/aspire.hosting/referenceexpression.md) `get; init` -- A value provider that will resolve to a path to the private key for the certificate.
- [Password](/reference/api/csharp/aspire.hosting/httpscertificateconfigurationcallbackannotationcontext/properties.md#password) : [IValueProvider?](/reference/api/csharp/aspire.hosting/ivalueprovider.md) `get; init` -- A value provider that will resolve to the password for the private key, if applicable.
- [PfxPath](/reference/api/csharp/aspire.hosting/httpscertificateconfigurationcallbackannotationcontext/properties.md#pfxpath) : [ReferenceExpression](/reference/api/csharp/aspire.hosting/referenceexpression.md) `get; init` -- A value provider that will resolve to a path to a PFX file for the key pair.
- [Resource](/reference/api/csharp/aspire.hosting/httpscertificateconfigurationcallbackannotationcontext/properties.md#resource) : [IResource](/reference/api/csharp/aspire.hosting/iresource.md) `get; init` -- Gets the resource to which the annotation is applied.
