Exemplo n.º 1
0
 /// <summary>
 /// Called after checking access token and reading game ref id from database
 /// </summary>
 /// <param name="loginId"></param>
 /// <param name="accessToken"></param>
 /// <param name="gameRefId"></param>
 public void OnUserLoggedIn(FullUserAuth auth, LoginClientPeer peer)
 {
     lock (syncRoot) {
         LoggedInUser user;
         if (this.TryGetValue(auth.login, out user))
         {
             this.Remove(auth.login);
         }
         this.Add(auth.login, new LoggedInUser(auth, peer));
         log.InfoFormat("added user = {0} yellow", auth.login);
     }
 }
Exemplo n.º 2
0
 public LoggedInUser(FullUserAuth fAuth, LoginClientPeer peer)
 {
     this.auth = fAuth;
     this.peer = peer;
 }
Exemplo n.º 3
0
 public MethodInvoker(LoginApplication app, LoginClientPeer impeer)
 {
     application = app;
     peer        = impeer;
 }