| using Microsoft.Extensions.DependencyInjection; | 
| using System; | 
| using System.Collections.Generic; | 
| using System.Linq; | 
| using System.Text; | 
| using System.Threading.Tasks; | 
| using WIDESEA_Core.Helper; | 
|   | 
| namespace WIDESEA_Core.Extensions | 
| { | 
|     /// <summary> | 
|     /// MiniProfiler 性能分析 | 
|     /// </summary> | 
|     public static class MiniProfilerSetup | 
|     { | 
|         /// <summary> | 
|         /// 性能分析 | 
|         /// </summary> | 
|         /// <param name="services"></param> | 
|         /// <exception cref="ArgumentNullException"></exception> | 
|         public static void AddMiniProfilerSetup(this IServiceCollection services) | 
|         { | 
|             if (services == null) throw new ArgumentNullException(nameof(services)); | 
|             //if (AppSettings.app(new string[] { "Startup", "MiniProfiler", "Enabled" }).ObjToBool()) | 
|             //{ | 
|             services.AddMiniProfiler(options => | 
|             { | 
|                 options.RouteBasePath = "/profiler"; | 
|             }); | 
|         } | 
|     } | 
| } |