ExecutionMode.cs 599 B

12345678910111213141516171819
  1. namespace Terminal.Gui.Examples;
  2. /// <summary>
  3. /// Defines the execution mode for running an example application.
  4. /// </summary>
  5. public enum ExecutionMode
  6. {
  7. /// <summary>
  8. /// Run the example in a separate process.
  9. /// This provides full isolation but makes debugging more difficult.
  10. /// </summary>
  11. OutOfProcess,
  12. /// <summary>
  13. /// Run the example in the same process by loading its assembly and invoking its entry point.
  14. /// This allows for easier debugging but may have side effects from shared process state.
  15. /// </summary>
  16. InProcess
  17. }