public void start() { ListeningURL = String.Empty; CreateUnityContainer(); if (System.IO.Directory.Exists("Plugins")) { PluginContainer.SetPluginDirectoryPath("Plugins"); } serviceHost = new ServiceHost(typeof(Modulo.Collect.Service.CollectService)); try { serviceHost.Open(); ListeningURL = serviceHost.Description.Endpoints[0].ListenUri.ToString(); } catch (Exception ex) { throw ex; } }