|
|
|
@ -33,9 +33,11 @@ namespace Platform
|
|
|
|
|
|
|
|
|
|
public override void ConfigureServices(IServiceCollection services)
|
|
|
|
|
{
|
|
|
|
|
services.AddMiniProfiler(o => {
|
|
|
|
|
services.AddMiniProfiler(o =>
|
|
|
|
|
{
|
|
|
|
|
o.RouteBasePath = "/profiler";// /profiler/results-index /profiler/results
|
|
|
|
|
o.ResultsAuthorize = o => {
|
|
|
|
|
o.ResultsAuthorize = o =>
|
|
|
|
|
{
|
|
|
|
|
return Configuration.GetAppSetting("Profiler", false) == true;
|
|
|
|
|
};
|
|
|
|
|
}).AddEntityFramework();
|
|
|
|
@ -106,7 +108,7 @@ namespace Platform
|
|
|
|
|
|
|
|
|
|
public override void ConfigureOptions(IServiceCollection services)
|
|
|
|
|
{
|
|
|
|
|
//services.ConfigureOptions(new FileConfigureOptions(Env, new List<string> { "IoT.Shared" }));
|
|
|
|
|
services.ConfigureOptions(new FileConfigureOptions(Env, new List<string> { }));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void UseSignalR(IEndpointRouteBuilder endpoints)
|
|
|
|
|