| 12345678910111213141516171819202122232425262728293031 | using System;using System.Net;namespace MECF.Framework.Common.Communications.Tcp.Socket.Client.APM.EventArgs{    public class TcpServerDisconnectedEventArgs : System.EventArgs    {        public TcpServerDisconnectedEventArgs(IPEndPoint remoteEP)            : this(remoteEP, null)        {        }        public TcpServerDisconnectedEventArgs(IPEndPoint remoteEP, IPEndPoint localEP)        {            if (remoteEP == null)                throw new ArgumentNullException("remoteEP");            this.RemoteEndPoint = remoteEP;            this.LocalEndPoint = localEP;        }        public IPEndPoint RemoteEndPoint { get; private set; }        public IPEndPoint LocalEndPoint { get; private set; }        public override string ToString()        {            return this.RemoteEndPoint.ToString();        }    }}
 |