From b6cd8ddcddf5b2a2769b6ff903b5fd76aed3e708 Mon Sep 17 00:00:00 2001 From: Argo-Tianyi Date: Fri, 14 Jan 2022 23:36:05 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=81=A5=E5=BA=B7=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E7=A7=BB=E9=99=A4=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BootstrapAdmin.Web/Pages/Admin/Healths.razor.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Healths.razor.cs b/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Healths.razor.cs index 9ac0f085..5e1f4328 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Healths.razor.cs +++ b/src/blazor/admin/BootstrapAdmin.Web/Pages/Admin/Healths.razor.cs @@ -1,11 +1,7 @@ using Bootstrap.Security.Blazor.HealthChecks; using BootstrapAdmin.Web.Components; -using BootstrapAdmin.Web.Services; using BootstrapAdmin.Web.Utils; using Microsoft.Extensions.Diagnostics.HealthChecks; -using System; -using System.Text.Json; -using System.Text.Json.Serialization; namespace BootstrapAdmin.Web.Pages.Admin; @@ -53,11 +49,8 @@ public partial class Healths private async Task> OnQueryAsync(QueryPageOptions options) { - var report = await CacheManager.GetOrAddAsync("Health", async entry => - { - var payload = await Client.GetStringAsync("/Healths"); - return HealthCheckHelper.Parse(payload); - }); + var payload = await Client.GetStringAsync("/Healths"); + var report = HealthCheckHelper.Parse(payload); var ret = new QueryData() {