diff --git a/makefile.shade b/makefile.shade
index bed37e67a4..c1bfddd1af 100644
--- a/makefile.shade
+++ b/makefile.shade
@@ -8,4 +8,7 @@ use-standard-lifecycle
k-standard-goals
#generatepages target='initialize'
- k command='run ../Microsoft.AspNet.Diagnostics' dnxDir='src/PageGenerator'
\ No newline at end of file
+ k command='run ../Microsoft.AspNet.Diagnostics' dnxDir='src/PageGenerator'
+
+#xml-docs-test .clean .build-compile description='Check generated XML documentation files for errors' target='package'
+ k-xml-docs-test
diff --git a/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/DeveloperExceptionPageExtensions.cs b/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/DeveloperExceptionPageExtensions.cs
index 2bfdf5d211..6a374be753 100644
--- a/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/DeveloperExceptionPageExtensions.cs
+++ b/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/DeveloperExceptionPageExtensions.cs
@@ -7,16 +7,15 @@ using Microsoft.AspNet.Diagnostics;
namespace Microsoft.AspNet.Builder
{
///
- /// IApplicationBuilder extension methods for the ErrorPageMiddleware.
+ /// extension methods for the .
///
public static class DeveloperExceptionPageExtensions
{
///
- /// Captures synchronous and asynchronous exceptions from the pipeline and generates HTML error responses.
- /// Full error details are only displayed by default if 'host.AppMode' is set to 'development' in the IApplicationBuilder.Properties.
+ /// Captures synchronous and asynchronous instances from the pipeline and generates HTML error responses.
///
- ///
- ///
+ /// The .
+ /// A reference to the after the operation has completed.
public static IApplicationBuilder UseDeveloperExceptionPage(this IApplicationBuilder builder)
{
if (builder == null)
@@ -24,23 +23,31 @@ namespace Microsoft.AspNet.Builder
throw new ArgumentNullException(nameof(builder));
}
- return builder.UseDeveloperExceptionPage(new ErrorPageOptions());
+ return builder.UseDeveloperExceptionPage(options => { });
}
///
- /// Captures synchronous and asynchronous exceptions from the pipeline and generates HTML error responses.
- /// Full error details are only displayed by default if 'host.AppMode' is set to 'development' in the IApplicationBuilder.Properties.
+ /// Captures synchronous and asynchronous instances from the pipeline and generates HTML error responses.
///
- ///
- ///
- ///
- public static IApplicationBuilder UseDeveloperExceptionPage(this IApplicationBuilder builder, ErrorPageOptions options)
+ /// The .
+ /// A callback to configure .
+ /// A reference to the after the operation has completed.
+ public static IApplicationBuilder UseDeveloperExceptionPage(
+ this IApplicationBuilder builder,
+ Action configureOptions)
{
if (builder == null)
{
throw new ArgumentNullException(nameof(builder));
}
+ if (configureOptions == null)
+ {
+ throw new ArgumentNullException(nameof(configureOptions));
+ }
+
+ var options = new ErrorPageOptions();
+ configureOptions(options);
return builder.UseMiddleware(options);
}
}
diff --git a/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/DeveloperExceptionPageMiddleware.cs b/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/DeveloperExceptionPageMiddleware.cs
index c8578a7d6c..dd37e91f7d 100644
--- a/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/DeveloperExceptionPageMiddleware.cs
+++ b/src/Microsoft.AspNet.Diagnostics/DeveloperExceptionPage/DeveloperExceptionPageMiddleware.cs
@@ -133,7 +133,7 @@ namespace Microsoft.AspNet.Diagnostics
};
var fileContent = compilationFailure
.SourceFileContent
- .Split(new[] { Environment.NewLine }, StringSplitOptions.None);
+ .Split(new[] { Environment.NewLine }, StringSplitOptions.None);
foreach (var item in compilationFailure.Messages)
{
diff --git a/src/Microsoft.AspNet.Diagnostics/WelcomePage/WelcomePageMiddleware.cs b/src/Microsoft.AspNet.Diagnostics/WelcomePage/WelcomePageMiddleware.cs
index 90fc725d7c..9d46495d9a 100644
--- a/src/Microsoft.AspNet.Diagnostics/WelcomePage/WelcomePageMiddleware.cs
+++ b/src/Microsoft.AspNet.Diagnostics/WelcomePage/WelcomePageMiddleware.cs
@@ -5,7 +5,6 @@
using System;
using System.Threading.Tasks;
using Microsoft.AspNet.Diagnostics.Views;
-using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Diagnostics
@@ -42,7 +41,7 @@ namespace Microsoft.AspNet.Diagnostics
///
/// Process an individual request.
///
- /// The .
+ /// The .
///
public Task Invoke(HttpContext context)
{