SessionTerminationArgs.cs 959 B

1234567891011121314151617181920212223242526272829303132
  1. /* Copyright (C) 2012-2016 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
  2. *
  3. * You can redistribute this program and/or modify it under the terms of
  4. * the GNU Lesser Public License as published by the Free Software Foundation,
  5. * either version 3 of the License, or (at your option) any later version.
  6. */
  7. using System;
  8. namespace ISCSI.Server
  9. {
  10. public enum SessionTerminationReason
  11. {
  12. Logout,
  13. ImplicitLogout, // Session reinstatement
  14. ConnectionFailure,
  15. TargetReset,
  16. }
  17. public class SessionTerminationArgs : EventArgs
  18. {
  19. public string InitiatorName;
  20. public ulong ISID;
  21. public SessionTerminationReason Reason;
  22. public SessionTerminationArgs(string initiatorName, ulong isid, SessionTerminationReason reason)
  23. {
  24. InitiatorName = initiatorName;
  25. ISID = isid;
  26. Reason = reason;
  27. }
  28. }
  29. }