private void _server_ClientConnected(object sender, System.Net.Sockets.TcpClient e) { var tmpClient = SimpleTcpAdapter.Convert(e); Clients.Add(tmpClient.GetEndPoint().ToString(), tmpClient); if (OnNewConnect != null) { OnNewConnect.Invoke(tmpClient); } }
public void Handle(NewConnect message) { OnNewConnect?.Invoke(message); }