/// <summary> /// Registers the specified address at the specified location /// </summary> /// <param name="address">The address.</param> /// <param name="universalActorLocation">The location of the Actor</param> public void Register(Address address, Uri universalActorLocation) { if (TheAddressIsNotRegistered(address)) { _addresses.Add(address, universalActorLocation); } }
private bool TheAddressIsNotRegistered(Address address) { return !_addresses.ContainsKey(address); }
/// <summary> /// Resolves the actor location. /// </summary> /// <param name="address">The address.</param> /// <returns></returns> public Uri ResolveActorLocation(Address address) { return _addresses[address]; }