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);
        }
Пример #2
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);
        }