对比新文件 |
| | |
| | | 锘縰sing 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"; |
| | | }); |
| | | } |
| | | } |
| | | } |