private static void Init()
 {
     GlobalEvent.AddTypeEvent <UserLogin2Client>(OnUserLoginEvent);
     GlobalEvent.AddTypeEvent <UserLogout2Client>(OnUserLogoutEvent);
     ResendMessageManager.Init();
     AutoReconnectController.EndReconnect += OnEndReconnect;
     AutoReconnectController.Init();
 }
 private static void Init()
 {
     GlobalEvent.AddTypeEvent <UserLogin2Client>(OnUserLoginEvent);
     GlobalEvent.AddTypeEvent <UserLogout2Client>(OnUserLogoutEvent);
     GlobalEvent.AddTypeEvent <AskUserUseActivationCode2Client>(AskUserUseActivationCode);
     ResendMessageManager.Init();
     AutoReconnectController.EndReconnect += ReLogin;
     AutoReconnectController.Init();
     ApplicationManager.s_OnApplicationUpdate += LogonUpdate;
 }