/// <summary> /// Run the test. /// </summary> /// <param name="client"> The WCF client to use.</param> private static void RunTest(SampleClient client) { string[] websitesToTest = { "http://microsoft.com/", "http://Wintellect.com", "http://live.com" }; foreach (var ws in websitesToTest) { Console.WriteLine("Requesting: {0}", ws); client.GetContentLength(ws); } }
/// <summary> /// Run the server /// </summary> /// <returns>The class.</returns> public AsyncTest Run() { // Make a client request SampleClient client = new SampleClient(ServiceAddress); RunTest(client); // Have to delay here to let async operations finish. Console.ReadLine(); return this; }