示例#1
0
 public static ELongApiService GetTestInstant()
 {
     if (Instant == null)
     {
         lock (lockHelper)
         {
             if (Instant == null)
             {
                 Instant = new ELongApiService(URL_TEST);
             }
         }
     }
     return(Instant);
 }
示例#2
0
 public static ELongApiService GetPublicInstant()
 {
     if (Instant == null)
     {
         lock (lockHelper)
         {
             if (Instant == null)
             {
                 Instant = new ELongApiService(URL_PUBLIC);
             }
         }
     }
     return(Instant);
 }
示例#3
0
        public static ELongApiService GetTestInstant()
        {
            if (Instant == null)
            {
                lock (lockHelper)
                {
                    if (Instant == null)
                    {
                        Instant = new ELongApiService(URL_TEST);
                    }
                }

            }
            return Instant;
        }
示例#4
0
        public static ELongApiService GetPublicInstant()
        {
            if (Instant == null)
            {
                lock (lockHelper)
                {
                    if (Instant == null)
                    {
                        Instant = new ELongApiService(URL_PUBLIC);
                    }
                }

            }
            return Instant;
        }
示例#5
0
 private ELongApiBiz()
 {
     elongService = ELongApiService.GetPublicInstant();
     ;
 }