33 lines
845 B
C#
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";
|
|
}
|
|
}
|
|
}
|