public static int AddHostWithSimulator(HostTopology topology, int minTimeout, int maxTimeout, int port, string ip) { bool flag = topology == null; if (flag) { throw new NullReferenceException("topology is not defined"); } NetworkTransport.CheckTopology(topology); return(NetworkTransport.AddHostInternal(new HostTopologyInternal(topology), ip, port, minTimeout, maxTimeout)); }