Ejemplo n.º 1
0
 public bool TryGetAccount(Address address, out ExtendedAccount account)
 {
     using (locker.CreateLock())
     {
         return(accounts.TryGetValue(address, out account));
     }
 }
Ejemplo n.º 2
0
 public bool AddAccount(Address address, ExtendedAccount account)
 {
     using (locker.CreateLock())
     {
         if (accounts.ContainsKey(address))
         {
             return(false);
         }
         accounts.Add(address, account);
         return(true);
     }
 }