-
-
Notifications
You must be signed in to change notification settings - Fork 978
Expand file tree
/
Copy pathExtendedCommandEventArgs.cs
More file actions
40 lines (37 loc) · 1.18 KB
/
ExtendedCommandEventArgs.cs
File metadata and controls
40 lines (37 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
#nullable enable
using System.Text;
namespace Renci.SshNet.Common
{
/// <summary>
/// Class for extended text output related events.
/// </summary>
public class ExtendedCommandEventArgs : CommandOutputEventArgs
{
/// <summary>
/// Initializes a new instance of the <see cref="ExtendedCommandEventArgs"/> class.
/// </summary>
/// <param name="rawData">The raw data received.</param>
/// <param name="encoding">The encoding used for the transmission.</param>
/// <param name="dataTypeCode">The data type code.</param>
public ExtendedCommandEventArgs(ArraySegment<byte> rawData, Encoding encoding, uint dataTypeCode)
: base(rawData, encoding)
{
DataTypeCode = dataTypeCode;
}
/// <summary>
/// Gets the data type code.
/// </summary>
public uint DataTypeCode { get; }
/// <summary>
/// Gets a value indicating whether the current data represents an stderr output.
/// </summary>
public bool IsError
{
get
{
return DataTypeCode == 1;
}
}
}
}