Пример #1
0
        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();
            }
        }
Пример #2
0
 public IAccount GetAccount(ByteArrayPart domain)
 {
     return(domain.IsInvalid ? null : accounts2.GetValue(domain.ToString()));
 }
Пример #3
0
 public IAccount GetAccount(int id)
 {
     return(accounts1.GetValue(id));
 }