void keepAlive_UserLost(object sender, KeepAliveEventArgs e) { IUserInfo user = discovery.Users[e.User.ClientID]; if (user != null) { discovery.UserIsOffline(user.ID); } }
void keepAlive_UserLosing(object sender, KeepAliveEventArgs e) { discovery.UpdateUser(e.User, discovered: false); }
void keepAlive_UserDiscovered(object sender, KeepAliveEventArgs e) { discovery.UpdateUser(e.User, discovered: true); }