ShellDataEventArgs.cs 1.0 KB

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