private bool RefreshBeautyConfigCache(string channle) { using (var client = new GroupBuyingClient()) { var result = client.RefreshBeautyConfigCache(channle); return(result.Success); } }
private bool RefreshBeautyConfigCache(string channel) { using (var client = new GroupBuyingClient()) { var serviceResult = client.RefreshBeautyConfigCache(channel); serviceResult.ThrowIfException(true); return(serviceResult.Result); } }
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); } } }