Sic.Framework-Nanjing-Baishi/MECF.Framework.Common/MECF/Framework/Common/Communications/Tcp/Socket/Server/APM/EventArgs/TcpClientConnectedEventArgs.cs

24 lines
466 B
C#

using System;
namespace MECF.Framework.Common.Communications.Tcp.Socket.Server.APM.EventArgs
{
public class TcpClientConnectedEventArgs : System.EventArgs
{
public TcpSocketSession Session { get; private set; }
public TcpClientConnectedEventArgs(TcpSocketSession session)
{
if (session == null)
{
throw new ArgumentNullException("session");
}
Session = session;
}
public override string ToString()
{
return $"{Session}";
}
}
}