public static IAppBuilder UseDiagnosticsPage(this IAppBuilder builder, DiagnosticsPageOptions options) { if (builder == null) { throw new ArgumentNullException("builder"); } return(builder.Use(typeof(DiagnosticsPageMiddleware), options)); }
/// <summary> /// Adds the DiagnosticsPageMiddleware to the pipeline with the given options. /// </summary> /// <param name="builder"></param> /// <param name="options"></param> /// <returns></returns> public static IApplicationBuilder UseDiagnosticsPage(this IApplicationBuilder builder, DiagnosticsPageOptions options) { if (builder == null) { throw new ArgumentNullException("builder"); } return(builder.Use(next => new DiagnosticsPageMiddleware(next, options).Invoke)); }
/// <summary> /// Adds the DiagnosticsPageMiddleware to the pipeline with the given options. /// </summary> /// <param name="builder"></param> /// <param name="options"></param> /// <returns></returns> public static IApplicationBuilder UseDiagnosticsPage([NotNull] this IApplicationBuilder builder, DiagnosticsPageOptions options) { return(builder.Use(next => new DiagnosticsPageMiddleware(next, options).Invoke)); }