Beispiel #1
0
 public void DeleteService(string ServiceURL)
 {
     if (!this.ServerReady)
     {
         throw new Exception("서버가 준비되지 않았습니다");
     }
     foreach (string url in WebServiceServer.ServerMain.getInstance().ActiveServiceDic.Keys)
     {
         if (ServiceURL == url)
         {
             ServerConsole.DeleteService(ServiceURL);
             break;
         }
     }
 }
Beispiel #2
0
        public void DeleteService()
        {
            if (!this.ServerReady)
            {
                throw new Exception("서버가 준비되지 않았습니다");
            }
            ICollection <string> urlList = WebServiceServer.ServerMain.getInstance().ActiveServiceDic.Keys;
            IList <string>       arrURL  = new List <string>();

            foreach (string url in urlList)
            {
                arrURL.Add(url);
            }
            foreach (string _url in arrURL)
            {
                ServerConsole.DeleteService(_url);
            }
        }