コード例 #1
0
 public bool TryGetAccount(Address address, out ExtendedAccount account)
 {
     using (locker.CreateLock())
     {
         return(accounts.TryGetValue(address, out account));
     }
 }
コード例 #2
0
 public bool AddAccount(Address address, ExtendedAccount account)
 {
     using (locker.CreateLock())
     {
         if (accounts.ContainsKey(address))
         {
             return(false);
         }
         accounts.Add(address, account);
         return(true);
     }
 }