blizzless-diiis/src/DiIiS-NA/D3-GameServer/ClientSystem/Base/ConnectionEventArgs.cs
2023-01-21 18:05:13 -08:00

33 lines
845 B
C#

//Blizzless Project 2022
using System;
//Blizzless Project 2022
using System.Collections.Generic;
//Blizzless Project 2022
using System.Linq;
//Blizzless Project 2022
using System.Text;
//Blizzless Project 2022
using System.Threading.Tasks;
namespace DiIiS_NA.GameServer.ClientSystem.Base
{
public class ConnectionEventArgs : EventArgs
{
public IConnection Connection { get; private set; }
public ConnectionEventArgs(IConnection connection)
{
if (connection == null)
throw new ArgumentNullException("connection");
Connection = connection;
}
public override string ToString()
{
return Connection.RemoteEndPoint != null
? Connection.RemoteEndPoint.ToString()
: "Not Connected";
}
}
}