public bool IsUserLoggedIn(User user) { CheckTimeoutSessions(); foreach (var value in loggedUsers.Values) { if (user.Equals(value.User)) return true; } return false; }
public List<Repository> GetRepositories(User owner) { return repositoryManager.GetRepositories(owner); }
public Session(User user) { this.user = user; created = DateTime.Now; }
public Guid AddUser(User user) { var guid = Guid.NewGuid(); loggedUsers.Add(guid, new Session(user)); return guid; }