# HttpsEndpointUpdateCallbackContext Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [HttpsEndpointUpdateCallbackContext](/reference/api/csharp/aspire.hosting/httpsendpointupdatecallbackcontext.md)
- Kind: `Properties`
- Members: `4`

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.

## CancellationToken

- Name: `CancellationToken`
- Modifiers: `get; init`
- Returns: `CancellationToken`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/HttpsEndpointUpdateCallbackContext.cs)

Gets the [HttpsEndpointUpdateCallbackContext.CancellationToken](/reference/api/csharp/aspire.hosting/httpsendpointupdatecallbackcontext/properties.md#cancellationtoken) for the operation.

```csharp
public CancellationToken CancellationToken { get; init; }
```

## Model

- Name: `Model`
- Modifiers: `get; init`
- Returns: [DistributedApplicationModel](/reference/api/csharp/aspire.hosting/distributedapplicationmodel.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/HttpsEndpointUpdateCallbackContext.cs)

Gets the [DistributedApplicationModel](/reference/api/csharp/aspire.hosting/distributedapplicationmodel.md) instance.

```csharp
public DistributedApplicationModel Model { get; init; }
```

## Resource

- Name: `Resource`
- Modifiers: `get; init`
- Returns: [IResource](/reference/api/csharp/aspire.hosting/iresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/HttpsEndpointUpdateCallbackContext.cs)

Gets the [IResource](/reference/api/csharp/aspire.hosting/iresource.md) that is being configured for HTTPS.

```csharp
public IResource Resource { get; init; }
```

## Services

- Name: `Services`
- Modifiers: `get; init`
- Returns: `IServiceProvider`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/HttpsEndpointUpdateCallbackContext.cs)

Gets the `IServiceProvider` instance from the application.

```csharp
public IServiceProvider Services { get; init; }
```
