public TestManualConnection() { rig1 = new EngineTestRig("Downloads1"); rig1.Manager.Start(); rig2 = new EngineTestRig("Downloads2"); rig2.Manager.Start(); var p = new ConnectionPair(5151); rig1.AddConnection(p.Incoming); rig2.AddConnection(p.Outgoing); while (true) { Console.WriteLine("Connection 1A active: {0}", p.Incoming.Connected); Console.WriteLine("Connection 2A active: {0}", p.Outgoing.Connected); Thread.Sleep(1000); } }
public TestManualConnection() { rig1 = new EngineTestRig("Downloads1"); rig1.Manager.StartAsync().Wait(); rig2 = new EngineTestRig("Downloads2"); rig2.Manager.StartAsync().Wait(); ConnectionPair p = new ConnectionPair(5151); rig1.AddConnection(p.Incoming); rig2.AddConnection(p.Outgoing); while (true) { Console.WriteLine("Connection 1A active: {0}", p.Incoming.Connected); Console.WriteLine("Connection 2A active: {0}", p.Outgoing.Connected); System.Threading.Thread.Sleep(1000); } }