ChannelRequestEventArgs.cs 725 B

12345678910111213141516171819202122232425
  1. using System;
  2. using Renci.SshNet.Messages.Connection;
  3. namespace Renci.SshNet.Common
  4. {
  5. /// <summary>
  6. /// Provides data for <see cref="Renci.SshNet.Channels.Channel.RequestReceived"/> event.
  7. /// </summary>
  8. internal class ChannelRequestEventArgs : EventArgs
  9. {
  10. /// <summary>
  11. /// Gets request information.
  12. /// </summary>
  13. public RequestInfo Info { get; private set; }
  14. /// <summary>
  15. /// Initializes a new instance of the <see cref="ChannelRequestEventArgs"/> class.
  16. /// </summary>
  17. /// <param name="info">Request information.</param>
  18. public ChannelRequestEventArgs(RequestInfo info)
  19. {
  20. Info = info;
  21. }
  22. }
  23. }