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