public void CleanupInvitesForUserId(Guid invitinguserId) { MatchInvites.RemoveAll(i => i.InvitingUser.Id == invitinguserId); }
void CleanupInvites() { MatchInvites.RemoveAll(i => i.InviteDate.AddMilliseconds(INVITE_CLEANUP_INTERVAL) < DateTime.Now); }
public List <Guid> GetInvitedUsersIdByUserId(Guid invitingUserId) { return(MatchInvites.Where(i => i.InvitingUser.Id == invitingUserId).Select(u => u.UserToInviteId).ToList()); }