# HttpsEndpointUpdateCallbackContext

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

Context provided to the callback of [ResourceBuilderExtensions.SubscribeHttpsEndpointsUpdate(IResourceBuilder<TResource>, Action<HttpsEndpointUpdateCallbackContext>)](/reference/api/csharp/aspire.hosting/resourcebuilderextensions/methods.md#subscribehttpsendpointsupdate-iresourcebuilder-tresource-action-httpsendpointupdatecallbackcontext) when an HTTPS certificate is determined to be available for the resource.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

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

## Constructors

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

## Properties

- [CancellationToken](/reference/api/csharp/aspire.hosting/httpsendpointupdatecallbackcontext/properties.md#cancellationtoken) : `CancellationToken` `get; init` -- Gets the [HttpsEndpointUpdateCallbackContext.CancellationToken](/reference/api/csharp/aspire.hosting/httpsendpointupdatecallbackcontext/properties.md#cancellationtoken) for the operation.
- [Model](/reference/api/csharp/aspire.hosting/httpsendpointupdatecallbackcontext/properties.md#model) : [DistributedApplicationModel](/reference/api/csharp/aspire.hosting/distributedapplicationmodel.md) `get; init` -- Gets the [DistributedApplicationModel](/reference/api/csharp/aspire.hosting/distributedapplicationmodel.md) instance.
- [Resource](/reference/api/csharp/aspire.hosting/httpsendpointupdatecallbackcontext/properties.md#resource) : [IResource](/reference/api/csharp/aspire.hosting/iresource.md) `get; init` -- Gets the [IResource](/reference/api/csharp/aspire.hosting/iresource.md) that is being configured for HTTPS.
- [Services](/reference/api/csharp/aspire.hosting/httpsendpointupdatecallbackcontext/properties.md#services) : `IServiceProvider` `get; init` -- Gets the `IServiceProvider` instance from the application.
