10 instantiations of TrayOptions
Aspire.Tray.Tests (10)
Helpers\TestTrayStartupInstallation.cs (1)
41return new(cli, null, BundleRoot, cli);
src\Aspire.Tray\Common\TrayOptions.cs (1)
80return new(cli, smokeSeconds, bundleRoot, startupCli) { InteractiveSmoke = interactiveSmoke };
TrayLaunchCommandTests.cs (3)
36new(bundle.CliPath, null, bundle.Root, null))); 46new(bundle.CliPath, null, bundle.Root, null))); 53Assert.Equal(new(bundle.CliPath, null, null, null), TrayOptions.Parse(["--cli", bundle.CliPath]));
WindowsTrayLaunchCommandTests.cs (5)
18var start = TrayLaunchCommand.CreateWindowsStartInfo(new(bundle.CliPath, null, bundle.Root, null)); 35TrayLaunchCommand.CreateWindowsStartInfo(new(bundle.CliPath, null, bundle.Root, null))); 47TrayLaunchCommand.CreateWindowsStartInfo(new(bundle.CliPath, null, bundle.Root, null))); 56TrayLaunchCommand.CreateWindowsStartInfo(new(bundle.CliPath, null, null, null))); 58TrayLaunchCommand.CreateWindowsStartInfo(new(bundle.CliPath, 1, bundle.Root, null)));
33 references to TrayOptions
Aspire.Tray.Tests (33)
Helpers\TestTrayStartupInstallation.cs (1)
38public TrayOptions Options(bool windows)
MacTrayStartupSettingsTests.cs (1)
55var options = installation.Options(windows: false) with { StartupCliPath = null };
src\Aspire.Tray\Common\MacTrayStartupSettings.cs (1)
12internal sealed class MacTrayStartupSettings(TrayOptions options, bool nativeFrontend, string launchAgentsDirectory)
src\Aspire.Tray\Common\TrayLaunchCommand.cs (2)
11public static ProcessStartInfo CreateWindowsStartInfo(TrayOptions options) 84public static ProcessStartInfo CreateStartInfo(TrayOptions options)
src\Aspire.Tray\Common\TrayOptions.cs (1)
21public static TrayOptions Parse(string[] args)
src\Aspire.Tray\Common\TrayStartupEntry.cs (1)
16internal static string? GetUnavailableReason(TrayOptions options, bool nativeFrontend, bool windows)
src\Aspire.Tray\Common\WindowsTrayStartupSettings.cs (1)
13TrayOptions options, bool nativeFrontend, string sourceExecutable, string bootstrapPath,
src\Aspire.Tray\Windows\WindowsTrayLauncher.cs (1)
19public static async Task StartAsync(TrayOptions options)
TrayLaunchCommandTests.cs (12)
14var options = TrayOptions.Parse(["--cli", bundle.CliPath, "--bundle-root", bundle.Root]); 53Assert.Equal(new(bundle.CliPath, null, null, null), TrayOptions.Parse(["--cli", bundle.CliPath])); 63Assert.Throws<ArgumentException>(() => TrayOptions.Parse(["--cli", bundle.CliPath, option, value])); 70Assert.Throws<ArgumentException>(() => TrayOptions.Parse([ 80var options = TrayOptions.Parse(interactiveFirst 94Assert.False(TrayOptions.Parse(["--cli", bundle.CliPath]).InteractiveSmoke); 95Assert.False(TrayOptions.Parse(["--cli", bundle.CliPath, "--smoke-seconds", "1"]).InteractiveSmoke); 103Assert.Throws<ArgumentException>(() => TrayOptions.Parse(["--cli", bundle.CliPath, "--smoke-interactive"])).Message); 104Assert.Throws<ArgumentException>(() => TrayOptions.Parse([ 106Assert.Throws<ArgumentException>(() => TrayOptions.Parse([
TrayStartupOptionsTests.cs (10)
20var options = TrayOptions.Parse(["--cli", bundle.CliPath, "--bundle-root", bundle.Root, "--startup-cli", startup]); 34Assert.Null(TrayOptions.Parse(["--cli", bundle.CliPath]).StartupCliPath); 35Assert.Throws<ArgumentException>(() => TrayOptions.Parse(["--cli", bundle.CliPath, "--startup-cli", "relative"])); 36Assert.Throws<ArgumentException>(() => TrayOptions.Parse([ 38Assert.Throws<ArgumentException>(() => TrayOptions.Parse([ 48var options = installation.Options(windows); 67var options = installation.Options(windows); 84var options = installation.Options(windows: false) with { CliPath = cli, StartupCliPath = cli }; 93var options = installation.Options(windows: false);
WindowsTrayStartupSettingsTests.cs (2)
173var options = installation.Options(windows: true) with { CliPath = cli, StartupCliPath = cli }; 229var options = installation.Options(windows: true) with { CliPath = cli, StartupCliPath = cli };