Exemplo n.º 1
0
        // 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);
        }
Exemplo n.º 2
0
 // This method will be called when the thread is started.
 public void DoWork()
 {
     service.SimpleListenerExample(new string[] { "http://localhost:8085/" });
 }