public static void BroadcastConnectEvent(object sender, ConnectEventArgs args) { if (mConnectEventHandler != null) { mConnectEventHandler(sender, args); } }
public void OnConnectEvent(object sender, ConnectEventArgs args) { if (ConnectEvent != null) { ConnectEvent(sender, args); } }
static void OnConnect(object sender, ConnectEventArgs args) { Console.Title = (sender as NetClient).ClientKey + " " + mTitle; mTitle += ". "; if (mTitle.Length > 10) { mTitle = string.Empty; } }
public void OnConnectEvent(object sender, ConnectEventArgs args) { if (mConnectEventHandler != null) { try { mConnectEventHandler(sender, args); } catch { RemotingSystem.Instance.DisconnectServer(mClientKey); } } }
private static void OnConnect(object sender, ConnectEventArgs args) { }