29 references to ExecutionType
Aspire.Hosting (9)
Dcp\DcpExecutor.cs (9)
1328exe.Spec.ExecutionType = ExecutionType.IDE; 1329exe.Spec.FallbackExecutionTypes = [ ExecutionType.Process ]; 1334exe.Spec.ExecutionType = ExecutionType.Process; 1381exe.Spec.ExecutionType = ExecutionType.IDE; 1382exe.Spec.FallbackExecutionTypes = [ ExecutionType.Process ]; 1393exe.Spec.ExecutionType = ExecutionType.Process; 1772if (spec.ExecutionType == ExecutionType.Process || (spec.ExecutionType == ExecutionType.IDE && !appHostArgs.Any())) 1776var executableArg = spec.ExecutionType != ExecutionType.IDE;
Aspire.Hosting.Tests (20)
Dcp\DcpExecutorTests.cs (20)
113[InlineData(ExecutionType.IDE, false, null, new string[] { "--test1", "--test2" })] 114[InlineData(ExecutionType.IDE, true, new string[] { "--withargs-test" }, new string[] { "--withargs-test" })] 115[InlineData(ExecutionType.Process, false, new string[] { "--test1", "--test2" }, new string[] { "--test1", "--test2" })] 116[InlineData(ExecutionType.Process, true, new string[] { "--", "--test1", "--test2", "--withargs-test" }, new string[] { "--", "--test1", "--test2", "--withargs-test" })] 125if (executionType == ExecutionType.IDE) 161var callArgs = executionType == ExecutionType.IDE ? exe.Spec.Args : exe.Spec.Args![^(expectedArgs?.Length ?? 0)..]; 1694Assert.Equal(ExecutionType.IDE, debuggableExe.Spec.ExecutionType); 1701Assert.Equal(ExecutionType.Process, nonDebuggableExe.Spec.ExecutionType); 1738Assert.Equal(ExecutionType.Process, exe.Spec.ExecutionType); 1775Assert.Equal(ExecutionType.Process, debuggableExe.Spec.ExecutionType); 1779Assert.Equal(ExecutionType.Process, nonDebuggableExe.Spec.ExecutionType); 1816Assert.Equal(ExecutionType.Process, exe.Spec.ExecutionType); 1852Assert.Equal(ExecutionType.Process, exe.Spec.ExecutionType); 1894Assert.Equal(ExecutionType.Process, exe.Spec.ExecutionType); 1936Assert.Equal(ExecutionType.Process, exe.Spec.ExecutionType); 1978Assert.Equal(ExecutionType.IDE, exe.Spec.ExecutionType); 2015Assert.Equal(ExecutionType.IDE, exe.Spec.ExecutionType); 2052Assert.Equal(ExecutionType.IDE, exe.Spec.ExecutionType); 2095Assert.Equal(ExecutionType.IDE, exe.Spec.ExecutionType); 2175Assert.Equal(ExecutionType.Process, exe.Spec.ExecutionType);