diff --git a/src/Middleware/StaticFiles/src/HtmlDirectoryFormatter.cs b/src/Middleware/StaticFiles/src/HtmlDirectoryFormatter.cs
index 22ddcb99d2..a5ac8e7ea1 100644
--- a/src/Middleware/StaticFiles/src/HtmlDirectoryFormatter.cs
+++ b/src/Middleware/StaticFiles/src/HtmlDirectoryFormatter.cs
@@ -9,7 +9,6 @@ using System.Text;
using System.Text.Encodings.Web;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
-using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.FileProviders;
namespace Microsoft.AspNetCore.StaticFiles
@@ -23,6 +22,10 @@ namespace Microsoft.AspNetCore.StaticFiles
private HtmlEncoder _htmlEncoder;
+ ///
+ /// Constructs the .
+ ///
+ /// The character encoding representation to use.
public HtmlDirectoryFormatter(HtmlEncoder encoder)
{
if (encoder == null)
@@ -169,4 +172,4 @@ namespace Microsoft.AspNetCore.StaticFiles
return _htmlEncoder.Encode(body);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Middleware/StaticFiles/src/StaticFileResponseContext.cs b/src/Middleware/StaticFiles/src/StaticFileResponseContext.cs
index a9743fdfa0..24b6f04681 100644
--- a/src/Middleware/StaticFiles/src/StaticFileResponseContext.cs
+++ b/src/Middleware/StaticFiles/src/StaticFileResponseContext.cs
@@ -12,11 +12,19 @@ namespace Microsoft.AspNetCore.StaticFiles
///
public class StaticFileResponseContext
{
+ ///
+ /// Constructs the .
+ ///
[Obsolete("Use the constructor that passes in the HttpContext and IFileInfo parameters: StaticFileResponseContext(HttpContext context, IFileInfo file)", false)]
public StaticFileResponseContext()
{
}
+ ///
+ /// Constructs the .
+ ///
+ /// The request and response information.
+ /// The file to be served.
public StaticFileResponseContext(HttpContext context, IFileInfo file)
{
if (file == null)
diff --git a/src/Mvc/Mvc.Abstractions/src/Abstractions/ActionDescriptor.cs b/src/Mvc/Mvc.Abstractions/src/Abstractions/ActionDescriptor.cs
index 5a68c8fc3d..443e05259a 100644
--- a/src/Mvc/Mvc.Abstractions/src/Abstractions/ActionDescriptor.cs
+++ b/src/Mvc/Mvc.Abstractions/src/Abstractions/ActionDescriptor.cs
@@ -10,7 +10,7 @@ using Microsoft.AspNetCore.Mvc.Routing;
namespace Microsoft.AspNetCore.Mvc.Abstractions
{
///
- /// Describes a MVC action.
+ /// Describes an MVC action.
///
public class ActionDescriptor
{
diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelStateDictionary.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelStateDictionary.cs
index ead0798570..40cb92c44c 100644
--- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelStateDictionary.cs
+++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelStateDictionary.cs
@@ -1089,7 +1089,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding
_nodes = null;
_visitedRoot = false;
}
-
+
///
public KeyValuePair Current =>
new KeyValuePair(_modelStateNode.Key, _modelStateNode);
diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/ControllerModel.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/ControllerModel.cs
index cd26b0e26d..597a5f63c8 100644
--- a/src/Mvc/Mvc.Core/src/ApplicationModels/ControllerModel.cs
+++ b/src/Mvc/Mvc.Core/src/ApplicationModels/ControllerModel.cs
@@ -68,6 +68,9 @@ namespace Microsoft.AspNetCore.Mvc.ApplicationModels
Selectors = new List(other.Selectors.Select(s => new SelectorModel(s)));
}
+ ///
+ /// The actions on this controller.
+ ///
public IList Actions { get; }
///
@@ -90,8 +93,14 @@ namespace Microsoft.AspNetCore.Mvc.ApplicationModels
string ICommonModel.Name => ControllerName;
+ ///
+ /// The name of this controller.
+ ///
public string ControllerName { get; set; }
+ ///
+ /// The type of this controller.
+ ///
public TypeInfo ControllerType { get; }
public IList ControllerProperties { get; }
@@ -120,6 +129,9 @@ namespace Microsoft.AspNetCore.Mvc.ApplicationModels
public IList Selectors { get; }
+ ///
+ /// The DisplayName of this controller.
+ ///
public string DisplayName
{
get
diff --git a/src/Mvc/Mvc.Localization/src/HtmlLocalizer.cs b/src/Mvc/Mvc.Localization/src/HtmlLocalizer.cs
index 1287f7f8c4..7e95771fa5 100644
--- a/src/Mvc/Mvc.Localization/src/HtmlLocalizer.cs
+++ b/src/Mvc/Mvc.Localization/src/HtmlLocalizer.cs
@@ -105,6 +105,11 @@ namespace Microsoft.AspNetCore.Mvc.Localization
protected virtual LocalizedHtmlString ToHtmlString(LocalizedString result) =>
new LocalizedHtmlString(result.Name, result.Value, result.ResourceNotFound);
+ ///
+ /// Creates a new for a .
+ ///
+ /// The .
+ /// The value arguments which will be used in construting the message.
protected virtual LocalizedHtmlString ToHtmlString(LocalizedString result, object[] arguments) =>
new LocalizedHtmlString(result.Name, result.Value, result.ResourceNotFound, arguments);
}
diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/MvcNewtonsoftJsonOptionsExtensions.cs b/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/MvcNewtonsoftJsonOptionsExtensions.cs
index 97faa23558..1015fe8e06 100644
--- a/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/MvcNewtonsoftJsonOptionsExtensions.cs
+++ b/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/MvcNewtonsoftJsonOptionsExtensions.cs
@@ -9,6 +9,9 @@ using Newtonsoft.Json.Serialization;
namespace Microsoft.Extensions.DependencyInjection
{
+ ///
+ /// Extension methods for Mvc.Newtonsoft.Json options.
+ ///
public static class MvcNewtonsoftJsonOptionsExtensions
{
///
diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/NewtonsoftJsonMvcCoreBuilderExtensions.cs b/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/NewtonsoftJsonMvcCoreBuilderExtensions.cs
index f69701edf8..2253853174 100644
--- a/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/NewtonsoftJsonMvcCoreBuilderExtensions.cs
+++ b/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/NewtonsoftJsonMvcCoreBuilderExtensions.cs
@@ -17,6 +17,9 @@ using Microsoft.Extensions.Options;
namespace Microsoft.Extensions.DependencyInjection
{
+ ///
+ /// Extension methods for adding Newtonsoft.Json to .
+ ///
public static class NewtonsoftJsonMvcCoreBuilderExtensions
{
///