19 references to ExecutionType
Aspire.Hosting (8)
Dcp\DcpExecutor.cs (8)
961exe.Spec.ExecutionType = ExecutionType.Process; 970exe.Spec.ExecutionType = ExecutionType.IDE; 984exe.Spec.ExecutionType = ExecutionType.Process; 1032exeSpec.Spec.ExecutionType = ExecutionType.IDE; 1049exeSpec.Spec.ExecutionType = ExecutionType.Process; 1287if (spec.ExecutionType == ExecutionType.Process || (spec.ExecutionType == ExecutionType.IDE && appHostArgs.Count == 0)) 1291var annotationOnly = spec.ExecutionType == ExecutionType.IDE;
Aspire.Hosting.Tests (11)
Dcp\DcpExecutorTests.cs (11)
111[InlineData(ExecutionType.IDE, false, null, new string[] { "--test1", "--test2" })] 112[InlineData(ExecutionType.IDE, true, new string[] { "--withargs-test" }, new string[] { "--withargs-test" })] 113[InlineData(ExecutionType.Process, false, new string[] { "--test1", "--test2" }, new string[] { "--test1", "--test2" })] 114[InlineData(ExecutionType.Process, true, new string[] { "--", "--test1", "--test2", "--withargs-test" }, new string[] { "--", "--test1", "--test2", "--withargs-test" })] 123if (executionType == ExecutionType.IDE) 160var callArgs = executionType == ExecutionType.IDE ? exe.Spec.Args : exe.Spec.Args![^(expectedArgs?.Length ?? 0)..]; 1574Assert.Equal(ExecutionType.IDE, debuggableExe.Spec.ExecutionType); 1582Assert.Equal(ExecutionType.Process, nonDebuggableExe.Spec.ExecutionType); 1620Assert.Equal(ExecutionType.Process, exe.Spec.ExecutionType); 1658Assert.Equal(ExecutionType.Process, debuggableExe.Spec.ExecutionType); 1662Assert.Equal(ExecutionType.Process, nonDebuggableExe.Spec.ExecutionType);