19 references to ExecutionType
Aspire.Hosting (8)
Dcp\DcpExecutor.cs (8)
961exe.Spec.ExecutionType = ExecutionType.Process; 972exe.Spec.ExecutionType = ExecutionType.IDE; 977exe.Spec.ExecutionType = ExecutionType.Process; 1026exeSpec.Spec.ExecutionType = ExecutionType.IDE; 1037exeSpec.Spec.ExecutionType = ExecutionType.Process; 1275if (spec.ExecutionType == ExecutionType.Process || (spec.ExecutionType == ExecutionType.IDE && appHostArgs.Count == 0)) 1279var 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); 1581Assert.Equal(ExecutionType.Process, nonDebuggableExe.Spec.ExecutionType); 1618Assert.Equal(ExecutionType.Process, exe.Spec.ExecutionType); 1656Assert.Equal(ExecutionType.Process, debuggableExe.Spec.ExecutionType); 1660Assert.Equal(ExecutionType.Process, nonDebuggableExe.Spec.ExecutionType);