You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
994 B
C#

9 months ago
using System;
namespace Renci.SshNet.Common
{
/// <summary>
/// Provides data for Shell DataReceived event
/// </summary>
public class ShellDataEventArgs : EventArgs
{
/// <summary>
/// Gets the data.
/// </summary>
public byte[] Data { get; private set; }
/// <summary>
/// Gets the line data.
/// </summary>
public string Line { get; private set; }
/// <summary>
/// Initializes a new instance of the <see cref="ShellDataEventArgs"/> class.
/// </summary>
/// <param name="data">The data.</param>
public ShellDataEventArgs(byte[] data)
{
Data = data;
}
/// <summary>
/// Initializes a new instance of the <see cref="ShellDataEventArgs"/> class.
/// </summary>
/// <param name="line">The line.</param>
public ShellDataEventArgs(string line)
{
Line = line;
}
}
}