Former-commit-id: 6c821e09c49005ce9c22e33eed46c8282a3f7468
Former-commit-id: 1189701dece2e5e1112c246b1d608701c332fe78
1.0
wanggang 4 years ago
parent cd8df2e728
commit a7439d4f95

@ -10,6 +10,8 @@
<PackageReference Include="Hangfire.AspNetCore" Version="1.7.18" />
<PackageReference Include="Hangfire.MySqlStorage" Version="2.0.3" />
<PackageReference Include="Hangfire.Storage.SQLite" Version="0.2.4" />
<PackageReference Include="MiniProfiler.AspNetCore.Mvc" Version="4.2.22" />
<PackageReference Include="MiniProfiler.EntityFrameworkCore" Version="4.2.22" />
<PackageReference Include="Serilog.Sinks.SQLite" Version="5.0.0" />
<PackageReference Include="sqlite-net-pcl" Version="1.7.335" />
<PackageReference Include="Microsoft.ReverseProxy" Version="1.0.0-preview.7.20562.2" />

@ -33,6 +33,9 @@ namespace Platform
public override void ConfigureServices(IServiceCollection services)
{
services.AddMiniProfiler(o => {
o.RouteBasePath = "/profiler";// /profiler/results-index /profiler/results
}).AddEntityFramework();
services.AddTransient<SceneTiggerService>();
services.AddTransient<ISceneTiggerService, CachedSceneTiggerService>();
services.AddTransient<IExecApiService,ExecApiService>();
@ -76,6 +79,7 @@ namespace Platform
public override void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
{
app.UseMiniProfiler();
base.Configure(app, env, loggerFactory);
var options = new DashboardOptions
{

Loading…
Cancel
Save