/// <summary> /// 添加 EF Core 监听拓展 /// </summary> /// <param name="builder"></param> /// <returns></returns> public static IMiniProfilerBuilder AddEntityFramework(this IMiniProfilerBuilder builder) { _ = builder ?? throw new ArgumentNullException(nameof(builder)); builder.Services.AddSingleton <IMiniProfilerDiagnosticListener, RelationalDiagnosticListener>(); return(builder); }
/// <summary> /// Adds all AWS service calls made with the AWS SDK for .NET to the MiniProfiler trace. /// </summary> /// <param name="builder"></param> /// <returns></returns> public static IMiniProfilerBuilder AddAwsSdk(this IMiniProfilerBuilder builder) { NormDev.MiniProfiler.AWS.Register.RegisterWithSdk(); return(builder); }