internal Address[] GetAddresses(long[] addressIDs) { Debug.Assert(m_settings.HasAddressManager); using (AddressManagerClient client = CreateAddressManagerClient()) { return(client.GetAddressesByID(addressIDs, EntityStatus.Enabled)); } }
public static Address GetAddress(this AddressManagerClient client, long addressID, EntityStatus?status) { // use ids.. Address[] addresses = client.GetAddressesByID(new long[] { addressID }, status); if (addresses.IsNullOrEmpty()) { return(null); } return(addresses[0]); }
public static Address[] GetAddressesByID(this AddressManagerClient client, long[] addressIDs) { return(client.GetAddressesByID(addressIDs, null)); }