refactor: 重构健康检查内部使用 System.Text.Json 组件

This commit is contained in:
Argo Zhang 2019-10-08 13:05:54 +08:00
parent 080239c658
commit e23824c878
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
3 changed files with 3 additions and 4 deletions

View File

@ -12,7 +12,7 @@
<ItemGroup>
<PackageReference Include="Bootstrap.Security.DataAccess" Version="2.2.21" />
<PackageReference Include="Bootstrap.Security.Mvc" Version="3.0.1-beta6" />
<PackageReference Include="Bootstrap.Security.Mvc" Version="3.0.1-beta7" />
<PackageReference Include="Longbow.Configuration" Version="2.2.7" />
<PackageReference Include="Longbow.Logging" Version="3.0.0" />
<PackageReference Include="Longbow.Tasks" Version="2.2.25-beta1" />

View File

@ -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<SignalRHub>("/NotiHub");
endpoints.MapHub<TaskLogHub>("/TaskLogHub");
endpoints.MapHealthChecks("/healths");
endpoints.MapBootstrapHealthChecks();
endpoints.MapDefaultControllerRoute().RequireAuthorization();
});
}

View File

@ -6,7 +6,7 @@
<ItemGroup>
<PackageReference Include="Bootstrap.Security.DataAccess" Version="2.2.21" />
<PackageReference Include="Longbow" Version="3.0.0-beta5" />
<PackageReference Include="Longbow" Version="3.0.0-beta6" />
<PackageReference Include="Longbow.Cache" Version="3.0.0-beta1" />
<PackageReference Include="Longbow.Configuration" Version="2.2.7" />
<PackageReference Include="Longbow.Data" Version="2.3.8" />