Ejemplo n.º 1
0
 /// <summary>
 /// Updates the AuthServer about the login-status of the account with the given name.
 /// Accounts that are flagged as logged-in cannot connect again until its unset again.
 /// Called whenever client connects/disconnects.
 /// </summary>
 /// <param name="acc"></param>
 /// <param name="loggedIn"></param>
 internal void SetAccountLoggedIn(RealmAccount acc, bool loggedIn)
 {
     if (m_authServiceClient.IsConnected)
     {
         if (loggedIn)
         {
             acc.OnLogin();
             m_authServiceClient.Channel.SetAccountLoggedIn(acc.Name);
         }
         else
         {
             acc.OnLogout();
             IOQueue.AddMessage(new Message1 <RealmAccount>(acc, UnregisterAccount));
             m_authServiceClient.Channel.SetAccountLoggedOut(acc.Name);
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="message"></param>
 public override void Dispatch(string message)
 {
     IOQueue.AddMessage(() => base.Dispatch(message));
 }
Ejemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="method"></param>
 public override void RemoveHandler(Action <string> method)
 {
     IOQueue.AddMessage(() => base.RemoveHandler(method));
 }
Ejemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="method"></param>
 public new void AddHandler(Action <string> method)
 {
     IOQueue.AddMessage(() => base.AddHandler(method));
 }