private bool AddUri(string uri)
{
lock (_thisLock)
{
lock (_amoebaManager.ThisLock)
{
var baseNode = _amoebaManager.BaseNode;
var uris = new List<string>(baseNode.Uris);
if (uris.Contains(uri) || uris.Count >= Node.MaxUriCount) return false;
uris.Add(uri);
_amoebaManager.SetBaseNode(new Node(baseNode.Id, uris));
}
}
return true;
}