static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Form1 form = new Form1(); IAIntAirAct intAirAct = IAIntAirAct.New(); intAirAct.Route(new IARoute("PUT", "/image"), delegate(IARequest req, IAResponse res) { logger.TraceEvent(TraceEventType.Information, 0, "Received request on {0}", req.Route); String url = req.BodyAsString(); form.BeginInvoke((Action) delegate() { form.LoadImageFromURL(url); }); }); intAirAct.Start(); Application.Run(form); intAirAct.Stop(); }
public void Teardown() { Client.Stop(); Server.Stop(); Client = null; Server = null; }
public void Stop() { personManager.StopPersonManager(); deviceManager.StopDeviceManager(); intAirAct.Stop(); communicationManager = null; }
public void Teardown() { Client.Stop(); Server.Stop(); Client = null; Server = null; // Wait a few seconds at the end of each test, to allow networking dependencies to clean up System.Threading.Thread.Sleep(2000); }
public void TestMethod1() { ia = IAIntAirAct.New(); ia.Start(); ia.Stop(); mse = new MSEKinectManager(); //Setup(); //Teardown(); }