# LaunchConfigurationCallbackContext Properties

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

Provides the runtime data used to create a launch configuration for a resource.

<a id="cancellationtoken"></a>

## CancellationToken

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

Gets the cancellation token for this executable creation.

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

<a id="environmentvariables"></a>

## EnvironmentVariables

- Name: `EnvironmentVariables`
- Modifiers: `get`
- Returns: `IReadOnlyDictionary<string, string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting/ApplicationModel/LaunchConfigurationCallbackContext.cs#L52)

Gets the resolved environment variables used for this executable creation.

```csharp
public IReadOnlyDictionary<string, string> EnvironmentVariables { get; }
```

## Remarks

Values can contain secrets. Aspire serializes only the launch configuration returned by the producer; integrations should copy only values required by the IDE.

<a id="mode"></a>

## Mode

- Name: `Mode`
- Modifiers: `get`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting/ApplicationModel/LaunchConfigurationCallbackContext.cs#L38)

Gets the requested launch mode, one of the values on [ExecutableLaunchMode](/reference/api/csharp/aspire.hosting/executablelaunchmode.md).

```csharp
public string Mode { get; }
```

<a id="resource"></a>

## Resource

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

Gets the resource being launched.

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