ShellDataEventArgs.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Renci.SshNet.Common
  6. {
  7. /// <summary>
  8. /// Provides data for Shell DataReceived event
  9. /// </summary>
  10. public class ShellDataEventArgs : EventArgs
  11. {
  12. /// <summary>
  13. /// Gets the data.
  14. /// </summary>
  15. public byte[] Data { get; private set; }
  16. /// <summary>
  17. /// Gets the line data.
  18. /// </summary>
  19. public string Line { get; private set; }
  20. /// <summary>
  21. /// Initializes a new instance of the <see cref="ShellDataEventArgs"/> class.
  22. /// </summary>
  23. /// <param name="data">The data.</param>
  24. public ShellDataEventArgs(byte[] data)
  25. {
  26. this.Data = data;
  27. }
  28. /// <summary>
  29. /// Initializes a new instance of the <see cref="ShellDataEventArgs"/> class.
  30. /// </summary>
  31. /// <param name="line">The line.</param>
  32. public ShellDataEventArgs(string line)
  33. {
  34. this.Line = line;
  35. }
  36. }
  37. }