TcpClientDisconnectedEventArgs.cs 605 B

1234567891011121314151617181920212223
  1. using System;
  2. namespace MECF.Framework.Common.Communications.Tcp.Socket.Server.APM.EventArgs
  3. {
  4. public class TcpClientDisconnectedEventArgs : System.EventArgs
  5. {
  6. public TcpClientDisconnectedEventArgs(TcpSocketSession session)
  7. {
  8. if (session == null)
  9. throw new ArgumentNullException("session");
  10. this.Session = session;
  11. }
  12. public TcpSocketSession Session { get; private set; }
  13. public override string ToString()
  14. {
  15. return string.Format("{0}", this.Session);
  16. }
  17. }
  18. }