Watch Aspire live streamsDocsTry Aspire

LaunchConfigurationCallbackContext Properties

ClassProperties4 members
Provides the runtime data used to create a launch configuration for a resource.
CancellationTokenSection titled CancellationTokenCancellationToken
Gets the cancellation token for this executable creation.
public CancellationToken CancellationToken { get; }
EnvironmentVariablesSection titled EnvironmentVariablesIReadOnlyDictionary<string, string>
Gets the resolved environment variables used for this executable creation.
public IReadOnlyDictionary<string, string> EnvironmentVariables { get; }
Values can contain secrets. Aspire serializes only the launch configuration returned by the producer; integrations should copy only values required by the IDE.
Gets the requested launch mode, one of the values on ExecutableLaunchMode.
public string Mode { get; }
Gets the resource being launched.
public IResource Resource { get; }