public override int GetCount(int accountId) { var sync = GetSync(accountId); sync.EnterReadLock(); try { var users = accounts.GetValue(accountId); return((users == null) ? 0 : users.Count); } finally { sync.ExitReadLock(); } }
public IAccount GetAccount(ByteArrayPart domain) { return(domain.IsInvalid ? null : accounts2.GetValue(domain.ToString())); }
public IAccount GetAccount(int id) { return(accounts1.GetValue(id)); }