51 lines
1.3 KiB
C#
51 lines
1.3 KiB
C#
using System;
|
|
|
|
namespace Unosquare.Swan.Components {
|
|
/// <summary>
|
|
/// Represents the text of the standard output and standard error
|
|
/// of a process, including its exit code.
|
|
/// </summary>
|
|
public class ProcessResult {
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="ProcessResult" /> class.
|
|
/// </summary>
|
|
/// <param name="exitCode">The exit code.</param>
|
|
/// <param name="standardOutput">The standard output.</param>
|
|
/// <param name="standardError">The standard error.</param>
|
|
public ProcessResult(Int32 exitCode, String standardOutput, String standardError) {
|
|
this.ExitCode = exitCode;
|
|
this.StandardOutput = standardOutput;
|
|
this.StandardError = standardError;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the exit code.
|
|
/// </summary>
|
|
/// <value>
|
|
/// The exit code.
|
|
/// </value>
|
|
public Int32 ExitCode {
|
|
get;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the text of the standard output.
|
|
/// </summary>
|
|
/// <value>
|
|
/// The standard output.
|
|
/// </value>
|
|
public String StandardOutput {
|
|
get;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the text of the standard error.
|
|
/// </summary>
|
|
/// <value>
|
|
/// The standard error.
|
|
/// </value>
|
|
public String StandardError {
|
|
get;
|
|
}
|
|
}
|
|
} |