Exemplo n.º 1
0
		static void Main (string[] args) {
			LegoRestService DemoServices = new LegoRestService ();
			WebServiceHost _serviceHost = new WebServiceHost (DemoServices, new Uri ("http://localhost:8000/DEMOService"));
			_serviceHost.Open ();
			Console.ReadKey ();
			_serviceHost.Close ();
		}
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            LegoRestService DemoServices = new LegoRestService();
            WebServiceHost  _serviceHost = new WebServiceHost(DemoServices, new Uri("http://localhost:8000/DEMOService"));

            _serviceHost.Open();
            Console.ReadKey();
            _serviceHost.Close();
        }