Exemplo n.º 1
0
 private bool RefreshBeautyConfigCache(string channle)
 {
     using (var client = new GroupBuyingClient())
     {
         var result = client.RefreshBeautyConfigCache(channle);
         return(result.Success);
     }
 }
 private bool RefreshBeautyPopUpCache()
 {
     using (var client = new GroupBuyingClient())
     {
         var result = client.RefreshBeautyPopUpWindowsConfigs();
         result.ThrowIfException(true);
         return(result.Success);
     }
 }
 private bool RefreshBeautyConfigCache(string channel)
 {
     using (var client = new GroupBuyingClient())
     {
         var serviceResult = client.RefreshBeautyConfigCache(channel);
         serviceResult.ThrowIfException(true);
         return(serviceResult.Result);
     }
 }
Exemplo n.º 4
0
        public async Task <bool> UpdateSoldInfoStatictisAsync(IEnumerable <int> shopIds)
        {
            using (var client = new GroupBuyingClient())
            {
                var result = await client.UpdateSoldInfoStatictisAsync(shopIds);

                result.ThrowIfException(true);
                return(result.Result);
            }
        }
        private bool UpdateBeautyBannerCache(string channel)
        {
            var result = false;

            using (var client = new GroupBuyingClient())
            {
                var temp = client.RefreshBeautyBannerCache(channel);
                temp.ThrowIfException(true);
                result = temp.Result;
            }
            return(result);
        }
 public ActionResult RefreshShopMapConfigsCache(string channel)
 {
     using (var client = new GroupBuyingClient())
     {
         var serviceResult = client.RefreshShopMapConfigsCache(channel);
         return(Json(new
         {
             Status = serviceResult.Success,
             Msg = serviceResult.ErrorMessage
         }, JsonRequestBehavior.AllowGet));
     }
 }
Exemplo n.º 7
0
        private async Task <bool> UpdateBeautyBannerCache(string channel)
        {
            var result = false;

            using (var client = new GroupBuyingClient())
            {
                var temp = client.RefreshBeautyBannerCache(channel);
                temp.ThrowIfException(true);
                result = temp.Result;
            }
            var beautyServiceProxy = new BeautyServiceProxy();
            await beautyServiceProxy.RefreshBeautyBannerCacheAsync(channel);

            return(result);
        }
Exemplo n.º 8
0
 public void CleanCahce()
 {
     try
     {
         using (var client = new GroupBuyingClient())
         {
             client.RefreshActivityConfigCache("ios");
             client.RefreshActivityConfigCache("android");
             client.RefreshActivityConfigCache("wx");
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public bool CleanCahce(string channel, int type)
 {
     using (var client = new GroupBuyingClient())
     {
         if (type == 1)
         {
             var result = client.RefreshBeautyConfigCache(channel).Result;
             return(result);
         }
         else
         {
             var result = client.RefreshActivityConfigCache(channel).Result;
             return(result);
         }
     }
 }
Exemplo n.º 10
0
 public void TestInitialize()
 {
     _client = new GroupBuyingClient();
 }