// This method will be called when the thread is started. public void DoWork() { // Create a listener. listener = new HttpListener(); // Add the prefixes. foreach (string s in new string[] { "http://localhost:8085/" }) { listener.Prefixes.Add(s); } listener.Start(); service.SimpleListenerExample(listener); }
// This method will be called when the thread is started. public void DoWork() { service.SimpleListenerExample(new string[] { "http://localhost:8085/" }); }