mirror of
https://github.com/anjoy8/Blog.Core.git
synced 2024-09-20 23:48:27 +08:00
parent
d2e76dc2b5
commit
0ffd347a3d
|
@ -42,7 +42,6 @@
|
|||
<ItemGroup>
|
||||
|
||||
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.9.10" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -1,16 +1,7 @@
|
|||
<!--<script async="async" id="mini-profiler" src="/profiler/includes.min.js?v=4.1.0+c940f0f28d"
|
||||
data-version="4.1.0+c940f0f28d" data-path="/profiler/"
|
||||
data-current-id="" data-ids="" data-position="Left"
|
||||
data-authorized="true" data-max-traces="15" data-toggle-shortcut="Alt+P"
|
||||
data-trivial-milliseconds="2.0" data-ignored-duplicate-execute-types="Open,OpenAsync,Close,CloseAsync">
|
||||
</script>-->
|
||||
|
||||
<!--1、版本号要与nuget包一致;2、id不能为空-->
|
||||
<script async="async" id="mini-profiler" src="/profiler/includes.min.js?v=4.1.0+c940f0f28d"
|
||||
data-version="4.1.0+c940f0f28d" data-path="/profiler/"
|
||||
data-current-id="4ec7c742-49d4-4eaf-8281-3c1e0efa8888" data-ids="4ec7c742-49d4-4eaf-8281-3c1e0efa8888"
|
||||
data-position="Left"
|
||||
data-authorized="true" data-max-traces="5" data-toggle-shortcut="Alt+P"
|
||||
data-trivial-milliseconds="2.0" data-ignored-duplicate-execute-types="Open,OpenAsync,Close,CloseAsync">
|
||||
<script async id="mini-profiler" src="/mini-profiler-resources/includes.min.js?v=4.2.1+b27bea37e9" data-version="4.2.1+b27bea37e9" data-path="/mini-profiler-resources/" data-current-id="144b1192-acd3-4fe2-bbc5-6f1e1c6d53df" data-ids="87a1341b-995d-4d1d-aaba-8f2bfcfc9ca9,144b1192-acd3-4fe2-bbc5-6f1e1c6d53df" data-position="Left" data-scheme="Light" data-authorized="true" data-max-traces="15" data-toggle-shortcut="Alt+P" data-trivial-milliseconds="2.0" data-ignored-duplicate-execute-types="Open,OpenAsync,Close,CloseAsync">
|
||||
|
||||
</script>
|
||||
|
||||
<!-- HTML for static distribution bundle build -->
|
||||
|
|
|
@ -12,13 +12,14 @@
|
|||
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="7.0.0" />
|
||||
<PackageReference Include="Consul" Version="1.6.1.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="3.1.9" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.9" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.SignalR" Version="1.1.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson" Version="5.0.0-preview.2.20167.3" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="5.0.0-preview.2.20160.3" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Log4Net.AspNetCore" Version="3.1.0" />
|
||||
<PackageReference Include="MiniProfiler.AspNetCore.Mvc" Version="4.1.0" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.3.3" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore.Filters" Version="5.1.1" />
|
||||
<PackageReference Include="MiniProfiler.AspNetCore.Mvc" Version="4.2.1" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.3" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore.Filters" Version="6.0.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -12,19 +12,21 @@ namespace Blog.Core.Extensions
|
|||
{
|
||||
if (services == null) throw new ArgumentNullException(nameof(services));
|
||||
|
||||
// 3.x使用MiniProfiler,必须要注册MemoryCache服务
|
||||
services.AddMiniProfiler(options =>
|
||||
{
|
||||
options.RouteBasePath = "/profiler";
|
||||
//(options.Storage as MemoryCacheStorage).CacheDuration = TimeSpan.FromMinutes(10);
|
||||
options.PopupRenderPosition = StackExchange.Profiling.RenderPosition.Left;
|
||||
options.PopupShowTimeWithChildren = true;
|
||||
services.AddMiniProfiler();
|
||||
|
||||
// 可以增加权限
|
||||
//options.ResultsAuthorize = request => request.HttpContext.User.IsInRole("Admin");
|
||||
//options.UserIdProvider = request => request.HttpContext.User.Identity.Name;
|
||||
}
|
||||
);
|
||||
// 3.x使用MiniProfiler,必须要注册MemoryCache服务
|
||||
// services.AddMiniProfiler(options =>
|
||||
// {
|
||||
// options.RouteBasePath = "/profiler";
|
||||
// //(options.Storage as MemoryCacheStorage).CacheDuration = TimeSpan.FromMinutes(10);
|
||||
// options.PopupRenderPosition = StackExchange.Profiling.RenderPosition.Left;
|
||||
// options.PopupShowTimeWithChildren = true;
|
||||
|
||||
// // 可以增加权限
|
||||
// //options.ResultsAuthorize = request => request.HttpContext.User.IsInRole("Admin");
|
||||
// //options.UserIdProvider = request => request.HttpContext.User.Identity.Name;
|
||||
// }
|
||||
//);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user