static void Main(string[] args) { Console.Write(" ================================================================================================\n"); Console.Write("\n TEST HARNESS WINDOW\n"); Console.Write("\n ================================================================================================\n"); Console.Write("\n Files from Repository Receieved"); Console.Write("\n ========================================\n"); ServiceHost host = CreateServiceChannel("http://localhost:8082/StreamService"); host.Open(); Server Server = new Server(); Console.Write("\n press key for Testing! "); Console.ReadKey(); host.Close(); TestH.Creator newDomain = new TestH.Creator(); //Calling the create AppDomain function using object newDomain.CreateChildDomain(); Message msg = Server.makeMessage("Sahil Shah", Server.endPoint, Server.endPoint); string remoteEndPoint = Comm <Server> .makeEndPoint("http://localhost", 8081); msg.to = remoteEndPoint; msg.body = MessageTest.errorMessage(); Server.comm.sndr.PostMessage(msg); Console.ReadKey(); Console.Write("\n press key to exit: "); }
// public static Queueing newQueue; //creating queue object // public static XmlTest demo = new XmlTest(); static void Main(string[] args) { //Converting FileStream to the string to be able to enqueue the test requests. try { Console.Write("\n =====================================================================================\n"); Console.WriteLine(" Test Requests Queued!"); Console.Write(" =======================================================================================\n"); string path = "../../TestRequest.xml"; string path1 = "../../TestRequest1.xml"; System.IO.FileStream xml = new System.IO.FileStream(path, System.IO.FileMode.Open); XDocument xmldoc = XDocument.Load(xml); System.IO.FileStream xml1 = new System.IO.FileStream(path1, System.IO.FileMode.Open); XDocument xmldoc1 = XDocument.Load(xml1); // newQueue = new Queueing(); // newQueue.enQ(xmldoc.ToString()); //Converting to string // newQueue.enQ(xmldoc1.ToString()); Console.WriteLine("=================="); Console.WriteLine("\nTest Request #1"); Console.WriteLine("=================="); Console.WriteLine("\n{0}", xmldoc.ToString()); Console.WriteLine("=================="); Console.WriteLine("\nTest Request #2"); Console.WriteLine("=================="); Console.WriteLine("\n{0}", xmldoc1.ToString()); } catch (Exception ex) { Console.Write("\n\n {0}", ex.Message); } TestH.Creator newDomain = new TestH.Creator(); newDomain.CreateChildDomain(/*newQueue*/); Console.ReadKey(); }
static void Main(string[] args) { TestH.Creator newDomain = new TestH.Creator(); //Calling the create AppDomain function using object string path = "../../TestRequest.xml"; System.IO.FileStream xml = new System.IO.FileStream(path, System.IO.FileMode.Open); XDocument xmldoc = XDocument.Load(xml); Console.WriteLine("=================="); Console.WriteLine("\nTest Request #1"); Console.WriteLine("=================="); Console.WriteLine("\n{0}", xmldoc.ToString()); Console.WriteLine("=================="); }