13 instantiations of TrayOptions
Aspire.Tray.Tests (13)
Helpers\TestTrayStartupInstallation.cs (1)
41
return
new
(cli, null, BundleRoot, cli);
LinuxTrayTests.cs (3)
653
var options = new
TrayOptions
(cli, null, installation.BundleRoot, cli);
674
var options = new
TrayOptions
(cli, null, installation.BundleRoot, cli);
776
var options = new
TrayOptions
(installation.MacCli, null, installation.BundleRoot, installation.MacCli);
src\Aspire.Tray\Common\TrayOptions.cs (1)
80
return
new
(cli, smokeSeconds, bundleRoot, startupCli) { InteractiveSmoke = interactiveSmoke };
TrayLaunchCommandTests.cs (3)
91
new
(bundle.CliPath, null, bundle.Root, null)));
101
new
(bundle.CliPath, null, bundle.Root, null)));
108
Assert.Equal(
new
(bundle.CliPath, null, null, null), TrayOptions.Parse(["--cli", bundle.CliPath]));
WindowsTrayLaunchCommandTests.cs (5)
18
var start = TrayLaunchCommand.CreateWindowsStartInfo(
new
(bundle.CliPath, null, bundle.Root, null));
35
TrayLaunchCommand.CreateWindowsStartInfo(
new
(bundle.CliPath, null, bundle.Root, null)));
47
TrayLaunchCommand.CreateWindowsStartInfo(
new
(bundle.CliPath, null, bundle.Root, null)));
56
TrayLaunchCommand.CreateWindowsStartInfo(
new
(bundle.CliPath, null, null, null)));
58
TrayLaunchCommand.CreateWindowsStartInfo(
new
(bundle.CliPath, 1, bundle.Root, null)));
41 references to TrayOptions
Aspire.Tray.Tests (41)
Helpers\TestTrayStartupInstallation.cs (1)
38
public
TrayOptions
Options(bool windows)
LinuxTrayTests.cs (3)
653
var
options = new TrayOptions(cli, null, installation.BundleRoot, cli);
674
var
options = new TrayOptions(cli, null, installation.BundleRoot, cli);
776
var
options = new TrayOptions(installation.MacCli, null, installation.BundleRoot, installation.MacCli);
MacTrayStartupSettingsTests.cs (1)
55
var
options = installation.Options(windows: false) with { StartupCliPath = null };
src\Aspire.Tray\Common\MacTrayStartupSettings.cs (1)
12
internal sealed class MacTrayStartupSettings(
TrayOptions
options, bool nativeFrontend, string launchAgentsDirectory)
src\Aspire.Tray\Common\TrayLaunchCommand.cs (2)
11
public static ProcessStartInfo CreateWindowsStartInfo(
TrayOptions
options)
84
public static ProcessStartInfo CreateStartInfo(
TrayOptions
options)
src\Aspire.Tray\Common\TrayOptions.cs (1)
21
public static
TrayOptions
Parse(string[] args)
src\Aspire.Tray\Common\TrayStartupEntry.cs (1)
17
internal static string? GetUnavailableReason(
TrayOptions
options, bool nativeFrontend, bool windows, bool linux)
src\Aspire.Tray\Common\WindowsTrayStartupSettings.cs (1)
13
TrayOptions
options, bool nativeFrontend, string sourceExecutable, string bootstrapPath,
src\Aspire.Tray\Linux\LinuxTrayRuntime.cs (2)
121
internal static ProcessStartInfo CreateStartInfo(
TrayOptions
options)
149
internal static async Task StartAsync(
TrayOptions
options)
src\Aspire.Tray\Linux\LinuxTrayStartupSettings.cs (1)
11
internal sealed class LinuxTrayStartupSettings(
TrayOptions
options, bool nativeFrontend, string directory)
src\Aspire.Tray\Windows\WindowsTrayLauncher.cs (1)
19
public static async Task StartAsync(
TrayOptions
options)
TrayLaunchCommandTests.cs (14)
38
var
options =
TrayOptions
.Parse(["--cli", cliPath, "--bundle-root", root]);
69
var
options =
TrayOptions
.Parse(["--cli", bundle.CliPath, "--bundle-root", bundle.Root]);
108
Assert.Equal(new(bundle.CliPath, null, null, null),
TrayOptions
.Parse(["--cli", bundle.CliPath]));
118
Assert.Throws<ArgumentException>(() =>
TrayOptions
.Parse(["--cli", bundle.CliPath, option, value]));
125
Assert.Throws<ArgumentException>(() =>
TrayOptions
.Parse([
135
var
options =
TrayOptions
.Parse(interactiveFirst
149
Assert.False(
TrayOptions
.Parse(["--cli", bundle.CliPath]).InteractiveSmoke);
150
Assert.False(
TrayOptions
.Parse(["--cli", bundle.CliPath, "--smoke-seconds", "1"]).InteractiveSmoke);
158
Assert.Throws<ArgumentException>(() =>
TrayOptions
.Parse(["--cli", bundle.CliPath, "--smoke-interactive"])).Message);
159
Assert.Throws<ArgumentException>(() =>
TrayOptions
.Parse([
161
Assert.Throws<ArgumentException>(() =>
TrayOptions
.Parse([
TrayStartupOptionsTests.cs (10)
20
var
options =
TrayOptions
.Parse(["--cli", bundle.CliPath, "--bundle-root", bundle.Root, "--startup-cli", startup]);
34
Assert.Null(
TrayOptions
.Parse(["--cli", bundle.CliPath]).StartupCliPath);
35
Assert.Throws<ArgumentException>(() =>
TrayOptions
.Parse(["--cli", bundle.CliPath, "--startup-cli", "relative"]));
36
Assert.Throws<ArgumentException>(() =>
TrayOptions
.Parse([
38
Assert.Throws<ArgumentException>(() =>
TrayOptions
.Parse([
48
var
options = installation.Options(windows);
67
var
options = installation.Options(windows);
84
var
options = installation.Options(windows: false) with { CliPath = cli, StartupCliPath = cli };
93
var
options = installation.Options(windows: false);
WindowsTrayStartupSettingsTests.cs (2)
173
var
options = installation.Options(windows: true) with { CliPath = cli, StartupCliPath = cli };
229
var
options = installation.Options(windows: true) with { CliPath = cli, StartupCliPath = cli };