TerminalLaunchOptions
Classsealednet10.0
Describes the process, initial grid, and placement of a terminal created by
TerminalService . namespace Aspire.Hosting.ApplicationModel;
public sealed class TerminalLaunchOptions{ // ...}9 members
Constructors1
Section titled ConstructorsProperties8
Section titled PropertiesArgumentsget; setIList<string> Gets or sets the arguments passed to
TerminalLaunchOptions.Executable . IDictionary<string, string> Gets environment variables applied to the process on top of the AppHost's own environment.
Executableget; setstring Gets or sets the executable to run. Resolved against
PATH when not fully qualified. Placementget; set Gets or sets where the terminal is displayed. Defaults to
TerminalPlacement.Dock . Titleget; setstring Gets or sets the title shown on the terminal's dock tab, and in the title bar when the terminal is detached into its own window.
WorkingDirectory get; setstring? Gets or sets the working directory the process starts in. Defaults to the AppHost's working directory.
Examples
Section titled Examplesvar options = new TerminalLaunchOptions{ Title = "Container shell", Executable = "docker", Arguments = ["exec", "-it", containerName, "/bin/sh"]};