public void RefreshCache() { using (var client = new ZeroActivityClient()) { var result = client.RefreshZeroActivityCache(); Assert.IsNotNull(result.Result); } }
public JsonResult RefreshCache() { try { using (var client = new ZeroActivityClient()) { var result = client.RefreshZeroActivityCache(); result.ThrowIfException(true); return(Json(new { msg = "缓存刷新成功" })); } } catch (Exception e) { return(Json(new { msg = e.InnerException })); } }