public static ELongApiService GetTestInstant()
 {
     if (Instant == null)
     {
         lock (lockHelper)
         {
             if (Instant == null)
             {
                 Instant = new ELongApiService(URL_TEST);
             }
         }
     }
     return(Instant);
 }
 public static ELongApiService GetPublicInstant()
 {
     if (Instant == null)
     {
         lock (lockHelper)
         {
             if (Instant == null)
             {
                 Instant = new ELongApiService(URL_PUBLIC);
             }
         }
     }
     return(Instant);
 }
        public static ELongApiService GetTestInstant()
        {
            if (Instant == null)
            {
                lock (lockHelper)
                {
                    if (Instant == null)
                    {
                        Instant = new ELongApiService(URL_TEST);
                    }
                }

            }
            return Instant;
        }
        public static ELongApiService GetPublicInstant()
        {
            if (Instant == null)
            {
                lock (lockHelper)
                {
                    if (Instant == null)
                    {
                        Instant = new ELongApiService(URL_PUBLIC);
                    }
                }

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