diff --git a/src/Middleware/Diagnostics.Abstractions/src/DiagnosticMessage.cs b/src/Middleware/Diagnostics.Abstractions/src/DiagnosticMessage.cs
index dc9f65f507..99f6a0f5d8 100644
--- a/src/Middleware/Diagnostics.Abstractions/src/DiagnosticMessage.cs
+++ b/src/Middleware/Diagnostics.Abstractions/src/DiagnosticMessage.cs
@@ -8,6 +8,16 @@ namespace Microsoft.AspNetCore.Diagnostics
///
public class DiagnosticMessage
{
+ ///
+ /// Initializes a new instance of .
+ ///
+ /// The error message.
+ /// The formatted error message.
+ /// The path of the file that produced the message.
+ /// The one-based line index for the start of the compilation error.
+ /// The zero-based column index for the start of the compilation error.
+ /// The one-based line index for the end of the compilation error.
+ /// The zero-based column index for the end of the compilation error.
public DiagnosticMessage(
string message,
string formattedMessage,
@@ -61,4 +71,4 @@ namespace Microsoft.AspNetCore.Diagnostics
///
public string FormattedMessage { get; }
}
-}
\ No newline at end of file
+}
diff --git a/src/Middleware/Diagnostics.Abstractions/src/IExceptionHandlerFeature.cs b/src/Middleware/Diagnostics.Abstractions/src/IExceptionHandlerFeature.cs
index 23069e3df4..7e25bc6b7b 100644
--- a/src/Middleware/Diagnostics.Abstractions/src/IExceptionHandlerFeature.cs
+++ b/src/Middleware/Diagnostics.Abstractions/src/IExceptionHandlerFeature.cs
@@ -5,8 +5,14 @@ using System;
namespace Microsoft.AspNetCore.Diagnostics
{
+ ///
+ /// Represents a feature containing the error of the original request to be examined by an exception handler.
+ ///
public interface IExceptionHandlerFeature
{
+ ///
+ /// The error encountered during the original request
+ ///
Exception Error { get; }
}
-}
\ No newline at end of file
+}
diff --git a/src/Middleware/Diagnostics.Abstractions/src/IStatusCodeReExecuteFeature.cs b/src/Middleware/Diagnostics.Abstractions/src/IStatusCodeReExecuteFeature.cs
index 31451e0bc7..994a69be74 100644
--- a/src/Middleware/Diagnostics.Abstractions/src/IStatusCodeReExecuteFeature.cs
+++ b/src/Middleware/Diagnostics.Abstractions/src/IStatusCodeReExecuteFeature.cs
@@ -1,14 +1,30 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
+using Microsoft.AspNetCore.Http;
+
namespace Microsoft.AspNetCore.Diagnostics
{
+ ///
+ /// Represents a feature containing the path details of the original request. This feature is provided by the
+ /// StatusCodePagesMiddleware when it re-execute the request pipeline with an alternative path to generate the
+ /// response body.
+ ///
public interface IStatusCodeReExecuteFeature
{
+ ///
+ /// The of the original request.
+ ///
string OriginalPathBase { get; set; }
+ ///
+ /// The of the original request.
+ ///
string OriginalPath { get; set; }
+ ///
+ /// The of the original request.
+ ///
string OriginalQueryString { get; set; }
}
-}
\ No newline at end of file
+}
diff --git a/src/Middleware/Diagnostics.Abstractions/src/Microsoft.AspNetCore.Diagnostics.Abstractions.csproj b/src/Middleware/Diagnostics.Abstractions/src/Microsoft.AspNetCore.Diagnostics.Abstractions.csproj
index 6b4d54af4f..b8c5508abf 100644
--- a/src/Middleware/Diagnostics.Abstractions/src/Microsoft.AspNetCore.Diagnostics.Abstractions.csproj
+++ b/src/Middleware/Diagnostics.Abstractions/src/Microsoft.AspNetCore.Diagnostics.Abstractions.csproj
@@ -4,7 +4,7 @@
ASP.NET Core diagnostics middleware abstractions and feature interface definitions.$(DefaultNetCoreTargetFramework)true
- $(NoWarn);CS1591
+ $(NoWarn.Replace('1591', ''))trueaspnetcore;diagnosticsfalse
diff --git a/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerExtensions.cs b/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerExtensions.cs
index 92f3c35765..7d3160f59e 100644
--- a/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerExtensions.cs
+++ b/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerExtensions.cs
@@ -8,6 +8,9 @@ using Microsoft.Extensions.Options;
namespace Microsoft.AspNetCore.Builder
{
+ ///
+ /// Extension methods for enabling .
+ ///
public static class ExceptionHandlerExtensions
{
///
@@ -95,4 +98,4 @@ namespace Microsoft.AspNetCore.Builder
return app.UseMiddleware(Options.Create(options));
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerFeature.cs b/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerFeature.cs
index f01fb6a1ab..fa43797a5d 100644
--- a/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerFeature.cs
+++ b/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerFeature.cs
@@ -5,10 +5,15 @@ using System;
namespace Microsoft.AspNetCore.Diagnostics
{
+ ///
+ /// A feature containing the path and error of the original request for examination by an exception handler.
+ ///
public class ExceptionHandlerFeature : IExceptionHandlerPathFeature
{
+ ///
public Exception Error { get; set; }
+ ///
public string Path { get; set; }
}
-}
\ No newline at end of file
+}
diff --git a/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerMiddleware.cs b/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerMiddleware.cs
index fbf0c8913d..d954e00a44 100644
--- a/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerMiddleware.cs
+++ b/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerMiddleware.cs
@@ -14,6 +14,9 @@ using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNetCore.Diagnostics
{
+ ///
+ /// A middleware for handling exceptions in the application.
+ ///
public class ExceptionHandlerMiddleware
{
private readonly RequestDelegate _next;
@@ -22,6 +25,13 @@ namespace Microsoft.AspNetCore.Diagnostics
private readonly Func