Exemple #1
0
        void keepAlive_UserLost(object sender, KeepAliveEventArgs e)
        {
            IUserInfo user = discovery.Users[e.User.ClientID];

            if (user != null)
            {
                discovery.UserIsOffline(user.ID);
            }
        }
Exemple #2
0
 void keepAlive_UserLosing(object sender, KeepAliveEventArgs e)
 {
     discovery.UpdateUser(e.User, discovered: false);
 }
Exemple #3
0
 void keepAlive_UserDiscovered(object sender, KeepAliveEventArgs e)
 {
     discovery.UpdateUser(e.User, discovered: true);
 }