using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WIDESEAWCS_Core.Helper; namespace WIDESEAWCS_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"; }); } } }