refactor: 重构健康检查内部使用 System.Text.Json 组件
This commit is contained in:
parent
080239c658
commit
e23824c878
|
@ -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" />
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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" />
|
||||
|
|
Loading…
Reference in New Issue