From e23824c87813580066e6fde038c471ba5fb77125 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 8 Oct 2019 13:05:54 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84=E5=81=A5?= =?UTF-8?q?=E5=BA=B7=E6=A3=80=E6=9F=A5=E5=86=85=E9=83=A8=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=20System.Text.Json=20=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/Bootstrap.Admin/Bootstrap.Admin.csproj | 2 +- src/admin/Bootstrap.Admin/Startup.cs | 3 +-- src/admin/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/admin/Bootstrap.Admin/Bootstrap.Admin.csproj b/src/admin/Bootstrap.Admin/Bootstrap.Admin.csproj index 580b51c4..0231a343 100644 --- a/src/admin/Bootstrap.Admin/Bootstrap.Admin.csproj +++ b/src/admin/Bootstrap.Admin/Bootstrap.Admin.csproj @@ -12,7 +12,7 @@ - + diff --git a/src/admin/Bootstrap.Admin/Startup.cs b/src/admin/Bootstrap.Admin/Startup.cs index 5a31d069..ce8db17b 100644 --- a/src/admin/Bootstrap.Admin/Startup.cs +++ b/src/admin/Bootstrap.Admin/Startup.cs @@ -109,14 +109,13 @@ namespace Bootstrap.Admin app.UseBootstrapAdminAuthentication(RoleHelper.RetrievesByUserName, RoleHelper.RetrievesByUrl, AppHelper.RetrievesByUserName); app.UseAuthorization(); app.UseSwagger(Configuration["SwaggerPathBase"].TrimEnd('/')); - app.UseBootstrapHealthChecks(); app.UseOnlineUsers(TraceHelper.Filter, TraceHelper.Save); app.UseCacheManager(); app.UseEndpoints(endpoints => { endpoints.MapHub("/NotiHub"); endpoints.MapHub("/TaskLogHub"); - endpoints.MapHealthChecks("/healths"); + endpoints.MapBootstrapHealthChecks(); endpoints.MapDefaultControllerRoute().RequireAuthorization(); }); } diff --git a/src/admin/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj b/src/admin/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj index 5f417dee..69f28f73 100644 --- a/src/admin/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj +++ b/src/admin/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj @@ -6,7 +6,7 @@ - +