Example #1
0
 /// <summary>
 /// 移除服务
 /// </summary>
 /// <param name="log"></param>
 internal void Remove(ServerLog log)
 {
     if (serverSet != null && serverSet.Remove(log))
     {
         onServerChange(serverSet);
     }
 }
Example #2
0
 /// <summary>
 /// 移除服务
 /// </summary>
 /// <param name="log"></param>
 /// <param name="isLoaded"></param>
 /// <returns></returns>
 internal bool Remove(Log log, bool isLoaded)
 {
     if (serverSet != null)
     {
         Log oldLog = serverSet.Server;
         if (oldLog != null)
         {
             if (serverSet.Remove(log.Server) == oldLog && serverSet.Server != null && isLoaded)
             {
                 onServerChange(serverSet);
                 return(false);
             }
             if (serverSet.Server != null)
             {
                 return(false);
             }
         }
     }
     return(clients.Length == 0);
 }