Torna al Thread
BasicHttpBinding bindingType = new BasicHttpBinding();
ServiceHost serviceHost = new ServiceHost(typeof(Server));
serviceHost.AddServiceEndpoint(typeof(IContract), bindingType, UriServiceBase); // UriServiceBase: http://localhost:12345/Service
Console.WriteLine(UriServiceBase);
serviceHost.Open();