ExampleResult.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. namespace Terminal.Gui.Examples;
  2. /// <summary>
  3. /// Contains the result of running an example application.
  4. /// </summary>
  5. public class ExampleResult
  6. {
  7. /// <summary>
  8. /// Gets or sets a value indicating whether the example completed successfully.
  9. /// </summary>
  10. public bool Success { get; set; }
  11. /// <summary>
  12. /// Gets or sets the exit code of the example process (for out-of-process execution).
  13. /// </summary>
  14. public int? ExitCode { get; set; }
  15. /// <summary>
  16. /// Gets or sets a value indicating whether the example timed out.
  17. /// </summary>
  18. public bool TimedOut { get; set; }
  19. /// <summary>
  20. /// Gets or sets any error message that occurred during execution.
  21. /// </summary>
  22. public string? ErrorMessage { get; set; }
  23. /// <summary>
  24. /// Gets or sets the performance metrics collected during execution.
  25. /// </summary>
  26. public ExampleMetrics? Metrics { get; set; }
  27. /// <summary>
  28. /// Gets or sets the standard output captured during execution.
  29. /// </summary>
  30. public string? StandardOutput { get; set; }
  31. /// <summary>
  32. /// Gets or sets the standard error captured during execution.
  33. /// </summary>
  34. public string? StandardError { get; set; }
  35. }