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

            return builder.Use(typeof(DiagnosticsPageMiddleware), options);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DiagnosticsPageMiddleware"/> class
 /// </summary>
 /// <param name="next"></param>
 /// <param name="options"></param>
 public DiagnosticsPageMiddleware(AppFunc next, DiagnosticsPageOptions options)
 {
     _next    = next;
     _options = options;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DiagnosticsPageMiddleware"/> class
 /// </summary>
 /// <param name="next"></param>
 /// <param name="options"></param>
 public DiagnosticsPageMiddleware(AppFunc next, DiagnosticsPageOptions options)
 {
     _next = next;
     _options = options;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DiagnosticsPageMiddleware"/> class
 /// </summary>
 /// <param name="next"></param>
 /// <param name="options"></param>
 public DiagnosticsPageMiddleware(OwinMiddleware next, DiagnosticsPageOptions options)
     : base(next)
 {
     _options = options;
 }