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

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