# ResourceUrlsCallbackContext Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [ResourceUrlsCallbackContext](/reference/api/csharp/aspire.hosting/resourceurlscallbackcontext.md)
- Kind: `Properties`
- Members: `5`

Represents a callback context for resource URLs.

## CancellationToken

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

Gets the [ResourceUrlsCallbackContext.CancellationToken](/reference/api/csharp/aspire.hosting/resourceurlscallbackcontext/properties.md#cancellationtoken) associated with the callback context.

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

## ExecutionContext

- Name: `ExecutionContext`
- Modifiers: `get`
- Returns: [DistributedApplicationExecutionContext](/reference/api/csharp/aspire.hosting/distributedapplicationexecutioncontext.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ResourceUrlsCallbackContext.cs#L82)

Gets the execution context associated with this invocation of the AppHost.

```csharp
public DistributedApplicationExecutionContext ExecutionContext { get; }
```

## ATS metadata

### ATS export

- Available to Polyglot AppHosts through the Aspire Type System.

## Logger

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

A logger instance to use for logging.

```csharp
public ILogger Logger { get; set; }
```

## Resource

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

Gets the resource this the URLs are associated with.

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

## ATS metadata

### ATS export

- Available to Polyglot AppHosts through the Aspire Type System.

## Urls

- Name: `Urls`
- Modifiers: `get`
- Returns: [List<ResourceUrlAnnotation>](/reference/api/csharp/aspire.hosting/resourceurlannotation.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ResourceUrlsCallbackContext.cs#L54)

Gets the URLs associated with the callback context.

```csharp
public List<ResourceUrlAnnotation> Urls { get; }
```
