# LaunchConfigurationCallbackContext

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.6.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting/ApplicationModel/LaunchConfigurationCallbackContext.cs)

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

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

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

## Remarks

Aspire creates this context after resolving the execution configuration for a specific executable creation. Environment variable values may contain secrets; only copy values into the launch configuration when the IDE requires them.

## Properties

- [CancellationToken](/reference/api/csharp/aspire.hosting/launchconfigurationcallbackcontext/properties.md#cancellationtoken) : `CancellationToken` `get` -- Gets the cancellation token for this executable creation.
- [EnvironmentVariables](/reference/api/csharp/aspire.hosting/launchconfigurationcallbackcontext/properties.md#environmentvariables) : `IReadOnlyDictionary<string, string>` `get` -- Gets the resolved environment variables used for this executable creation.
- [Mode](/reference/api/csharp/aspire.hosting/launchconfigurationcallbackcontext/properties.md#mode) : `string` `get` -- Gets the requested launch mode, one of the values on [ExecutableLaunchMode](/reference/api/csharp/aspire.hosting/executablelaunchmode.md).
- [Resource](/reference/api/csharp/aspire.hosting/launchconfigurationcallbackcontext/properties.md#resource) : [IResource](/reference/api/csharp/aspire.hosting/iresource.md) `get` -- Gets the resource being launched.
