Пример #1
0
 /// <summary>
 /// 生成IPSeeker实例
 /// </summary>
 /// <returns>IPSeeker实例</returns>
 public static IPSeeker Instance()
 {
     if (ipSeeker == null)
     {
         lock (lockObject)
         {
             if (ipSeeker == null)
             {
                 ipSeeker = new IPSeeker();
             }
         }
     }
     return(ipSeeker);
 }
Пример #2
0
        /// <summary>
        /// 生成IPSeeker实例
        /// </summary>
        /// <returns>IPSeeker实例</returns>
        public static IPSeeker Instance()
        {
            if (ipSeeker == null)
            {
                lock (lockObject)
                {
                    if (ipSeeker == null)
                    {

                        ipSeeker = new IPSeeker();
                    }
                }
            }
            return ipSeeker;
        }