public static Dictionary <IPAddress, AmClusterNetwork> GetIpv4StaticNetworkMap(IAmCluster cluster, IPAddress[] ipv4Addresses) { Dictionary <IPAddress, AmClusterNetwork> dictionary = new Dictionary <IPAddress, AmClusterNetwork>(8); foreach (IPAddress ipaddress in ipv4Addresses) { AmClusterNetwork amClusterNetwork = cluster.FindNetworkByIPv4Address(ipaddress); if (amClusterNetwork == null) { throw new FailedToFindNetwork(ipaddress.ToString()); } dictionary[ipaddress] = amClusterNetwork; } return(dictionary); }