AuthenticationEventArgs.cs 670 B

123456789101112131415161718192021222324
  1. using System;
  2. namespace Renci.SshNet.Common
  3. {
  4. /// <summary>
  5. /// Base class for authentication events.
  6. /// </summary>
  7. public abstract class AuthenticationEventArgs : EventArgs
  8. {
  9. /// <summary>
  10. /// Gets the username.
  11. /// </summary>
  12. public string Username { get; private set; }
  13. /// <summary>
  14. /// Initializes a new instance of the <see cref="AuthenticationEventArgs"/> class.
  15. /// </summary>
  16. /// <param name="username">The username.</param>
  17. public AuthenticationEventArgs(string username)
  18. {
  19. this.Username = username;
  20. }
  21. }
  22. }