diff --git a/samples/MvcSample.Web/AutoGenerateRouteNamesAttribute.cs b/samples/MvcSample.Web/AutoGenerateRouteNamesAttribute.cs
index 7a8505c4ce..2a4784034c 100644
--- a/samples/MvcSample.Web/AutoGenerateRouteNamesAttribute.cs
+++ b/samples/MvcSample.Web/AutoGenerateRouteNamesAttribute.cs
@@ -21,8 +21,8 @@ namespace MvcSample.Web
if (action.AttributeRouteModel.Name == null)
{
action.AttributeRouteModel.Name = string.Format(
- "{0}_{1}",
- model.ControllerName,
+ "{0}_{1}",
+ model.ControllerName,
action.ActionName);
}
}
diff --git a/samples/MvcSample.Web/Filters/AgeEnhancerFilterAttribute.cs b/samples/MvcSample.Web/Filters/AgeEnhancerFilterAttribute.cs
index 834a3673db..aaceb495ba 100644
--- a/samples/MvcSample.Web/Filters/AgeEnhancerFilterAttribute.cs
+++ b/samples/MvcSample.Web/Filters/AgeEnhancerFilterAttribute.cs
@@ -15,7 +15,7 @@ namespace MvcSample.Web.Filters
{
controller.CustomUser.Log += "Age Enhanced!" + Environment.NewLine;
}
-
+
if (context.ActionArguments.TryGetValue("age", out age))
{
if (age is int)
diff --git a/samples/MvcSample.Web/Filters/BlockAnonymous.cs b/samples/MvcSample.Web/Filters/BlockAnonymous.cs
index d10b555c89..495ddab1b5 100644
--- a/samples/MvcSample.Web/Filters/BlockAnonymous.cs
+++ b/samples/MvcSample.Web/Filters/BlockAnonymous.cs
@@ -6,12 +6,12 @@ namespace MvcSample.Web.Filters
{
public override void OnAuthorization(AuthorizationContext context)
{
- if (!HasAllowAnonymous(context))
+ if (!HasAllowAnonymous(context))
{
var user = context.HttpContext.User;
- var userIsAnonymous =
- user == null ||
- user.Identity == null ||
+ var userIsAnonymous =
+ user == null ||
+ user.Identity == null ||
!user.Identity.IsAuthenticated;
if(userIsAnonymous)
diff --git a/samples/MvcSample.Web/Filters/DelayAttribute.cs b/samples/MvcSample.Web/Filters/DelayAttribute.cs
index 85e01f23d3..8e23d87719 100644
--- a/samples/MvcSample.Web/Filters/DelayAttribute.cs
+++ b/samples/MvcSample.Web/Filters/DelayAttribute.cs
@@ -22,7 +22,7 @@ namespace MvcSample.Web.Filters
}
var executedContext = await next();
-
+
if (executedContext.Result is ViewResult)
{
// slow down outgoing view results
diff --git a/samples/MvcSample.Web/Filters/FakeUserAttribute.cs b/samples/MvcSample.Web/Filters/FakeUserAttribute.cs
index f2c6dadb39..c8a6f869c4 100644
--- a/samples/MvcSample.Web/Filters/FakeUserAttribute.cs
+++ b/samples/MvcSample.Web/Filters/FakeUserAttribute.cs
@@ -11,10 +11,10 @@ namespace MvcSample.Web
{
context.HttpContext.User = new ClaimsPrincipal(
new ClaimsIdentity(
- new Claim[] {
+ new Claim[] {
new Claim("Permission", "CanViewPage"),
- new Claim(ClaimTypes.Role, "Administrator"),
- new Claim(ClaimTypes.NameIdentifier, "John")},
+ new Claim(ClaimTypes.Role, "Administrator"),
+ new Claim(ClaimTypes.NameIdentifier, "John")},
"Basic"));
}
}
diff --git a/samples/MvcSample.Web/Filters/UserNameService.cs b/samples/MvcSample.Web/Filters/UserNameService.cs
index 47f038e950..0af9c5a44f 100644
--- a/samples/MvcSample.Web/Filters/UserNameService.cs
+++ b/samples/MvcSample.Web/Filters/UserNameService.cs
@@ -6,7 +6,7 @@ namespace MvcSample.Web.Filters
{
private static readonly string[] _userNames = new[] { "Jon", "David", "Goliath" };
private static int _index;
-
+
public string GetName()
{
return _userNames[_index++ % 3];
diff --git a/samples/MvcSample.Web/SimplePocoController.cs b/samples/MvcSample.Web/SimplePocoController.cs
index df32dfb258..364555c15c 100644
--- a/samples/MvcSample.Web/SimplePocoController.cs
+++ b/samples/MvcSample.Web/SimplePocoController.cs
@@ -22,7 +22,7 @@ namespace MvcSample.Web
{
var time = _timer.ElapsedMilliseconds;
context.HttpContext.Response.Headers.Add(
- "ActionElapsedTime",
+ "ActionElapsedTime",
new string[] { time.ToString(CultureInfo.InvariantCulture) + " ms" });
}
@@ -35,7 +35,7 @@ namespace MvcSample.Web
{
var time = _timer.ElapsedMilliseconds;
context.HttpContext.Response.Headers.Add(
- "ResultElapsedTime",
+ "ResultElapsedTime",
new string[] { time.ToString(CultureInfo.InvariantCulture) + " ms" });
}
}
diff --git a/samples/MvcSample.Web/Startup.cs b/samples/MvcSample.Web/Startup.cs
index c3b0c3708b..aa0981dfaf 100644
--- a/samples/MvcSample.Web/Startup.cs
+++ b/samples/MvcSample.Web/Startup.cs
@@ -9,7 +9,7 @@ using Microsoft.Framework.DependencyInjection;
using MvcSample.Web.Filters;
using MvcSample.Web.Services;
-#if ASPNET50
+#if ASPNET50
using Autofac;
using Microsoft.Framework.DependencyInjection.Autofac;
#endif
@@ -55,10 +55,10 @@ namespace MvcSample.Web
options.ViewLocationExpanders.Insert(0, expander);
});
- // Create the autofac container
+ // Create the autofac container
ContainerBuilder builder = new ContainerBuilder();
- // Create the container and use the default application services as a fallback
+ // Create the container and use the default application services as a fallback
AutofacRegistration.Populate(
builder,
services,
diff --git a/samples/MvcSample.Web/Views/ApiExplorer/All.cshtml b/samples/MvcSample.Web/Views/ApiExplorer/All.cshtml
index 195576b70f..279a29526a 100644
--- a/samples/MvcSample.Web/Views/ApiExplorer/All.cshtml
+++ b/samples/MvcSample.Web/Views/ApiExplorer/All.cshtml
@@ -17,7 +17,7 @@
{
await Html.RenderPartialAsync("_ApiDescription", item);
}
-
+
}
\ No newline at end of file
diff --git a/samples/MvcSample.Web/Views/Home/Create.cshtml b/samples/MvcSample.Web/Views/Home/Create.cshtml
index 4f94683fcf..be2667807b 100644
--- a/samples/MvcSample.Web/Views/Home/Create.cshtml
+++ b/samples/MvcSample.Web/Views/Home/Create.cshtml
@@ -120,6 +120,6 @@
{
var propertyName = property.PropertyName;
var propertyTypeName = property.ModelType.Name;
-
+
Property @propertyName is type @propertyTypeName and '@(property.Description ?? "no description")'
}
\ No newline at end of file
diff --git a/src/Microsoft.AspNet.Mvc.Common/TaskHelper.cs b/src/Microsoft.AspNet.Mvc.Common/TaskHelper.cs
index b290361363..78acc7a4c9 100644
--- a/src/Microsoft.AspNet.Mvc.Common/TaskHelper.cs
+++ b/src/Microsoft.AspNet.Mvc.Common/TaskHelper.cs
@@ -11,7 +11,7 @@ namespace Microsoft.AspNet.Mvc
internal static class TaskHelper
{
///
- /// Waits for the task to complete and throws the first faulting exception if the task is faulted.
+ /// Waits for the task to complete and throws the first faulting exception if the task is faulted.
/// It preserves the original stack trace when throwing the exception.
///
///
@@ -23,11 +23,11 @@ namespace Microsoft.AspNet.Mvc
}
///
- /// Waits for the task to complete and throws the first faulting exception if the task is faulted.
+ /// Waits for the task to complete and throws the first faulting exception if the task is faulted.
/// It preserves the original stack trace when throwing the exception.
///
///
- /// Invoking this method is equivalent to calling on the
+ /// Invoking this method is equivalent to calling on the
/// if it is not completed.
///
public static TVal WaitAndThrowIfFaulted(Task task)
diff --git a/src/Microsoft.AspNet.Mvc.Core/ActionConstraints/ActionConstraintProviderContext.cs b/src/Microsoft.AspNet.Mvc.Core/ActionConstraints/ActionConstraintProviderContext.cs
index eeafbd1e2c..155f8923c9 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ActionConstraints/ActionConstraintProviderContext.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ActionConstraints/ActionConstraintProviderContext.cs
@@ -16,7 +16,7 @@ namespace Microsoft.AspNet.Mvc
/// The for which constraints are being created.
/// The list of objects.
public ActionConstraintProviderContext(
- [NotNull] ActionDescriptor action,
+ [NotNull] ActionDescriptor action,
[NotNull] IList items)
{
Action = action;
diff --git a/src/Microsoft.AspNet.Mvc.Core/ActionConstraints/ActionMethodSelectorAttribute.cs b/src/Microsoft.AspNet.Mvc.Core/ActionConstraints/ActionMethodSelectorAttribute.cs
index 842b6049f3..e9ad01448b 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ActionConstraints/ActionMethodSelectorAttribute.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ActionConstraints/ActionMethodSelectorAttribute.cs
@@ -28,7 +28,7 @@ namespace Microsoft.AspNet.Mvc
/// The route context.
/// Information about the action.
///
- /// if the action selection is valid for the specified context;
+ /// if the action selection is valid for the specified context;
/// otherwise, .
///
public abstract bool IsValidForRequest(RouteContext routeContext, ActionDescriptor action);
diff --git a/src/Microsoft.AspNet.Mvc.Core/ActionConstraints/DefaultActionConstraintProvider.cs b/src/Microsoft.AspNet.Mvc.Core/ActionConstraints/DefaultActionConstraintProvider.cs
index 2f48e4688a..33008d0d21 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ActionConstraints/DefaultActionConstraintProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ActionConstraints/DefaultActionConstraintProvider.cs
@@ -10,8 +10,8 @@ namespace Microsoft.AspNet.Mvc
/// A default implementation of .
///
///
- /// This provider is able to provide an instance when the
- /// implements or
+ /// This provider is able to provide an instance when the
+ /// implements or
/// /
///
public class DefaultActionConstraintProvider : INestedProvider
@@ -28,7 +28,7 @@ namespace Microsoft.AspNet.Mvc
}
///
- public int Order
+ public int Order
{
get { return DefaultOrder.DefaultFrameworkSortOrder; }
}
diff --git a/src/Microsoft.AspNet.Mvc.Core/ActionConstraints/IActionConstraint.cs b/src/Microsoft.AspNet.Mvc.Core/ActionConstraints/IActionConstraint.cs
index 661029c200..3fa0638ed6 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ActionConstraints/IActionConstraint.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ActionConstraints/IActionConstraint.cs
@@ -9,35 +9,35 @@ namespace Microsoft.AspNet.Mvc
///
///
/// Action constraints have the secondary effect of making an action with a constraint applied a better
- /// match than one without.
- ///
+ /// match than one without.
+ ///
/// Consider two actions, 'A' and 'B' with the same action and controller name. Action 'A' only allows the
/// HTTP POST method (via a constraint) and action 'B' has no constraints.
- ///
+ ///
/// If an incoming request is a POST, then 'A' is considered the best match because it both matches and
/// has a constraint. If an incoming request uses any other verb, 'A' will not be valid for selection
/// due to it's constraint, so 'B' is the best match.
- ///
- ///
+ ///
+ ///
/// Action constraints are also grouped according to their order value. Any constraints with the same
/// group value are considered to be part of the same application policy, and will be executed in the
/// same stage.
- ///
+ ///
/// Stages run in ascending order based on the value of . Given a set of actions which
/// are candidates for selection, the next stage to run is the lowest value of for any
/// constraint of any candidate which is greater than the order of the last stage.
- ///
+ ///
/// Once the stage order is identified, each action has all of it's constraints in that stage executed.
/// If any constraint does not match, then that action is not a candidate for selection. If any actions
/// with constraints in the current state are still candidates, then those are the 'best' actions and this
- /// process will repeat with the next stage on the set of 'best' actions. If after processing the
+ /// process will repeat with the next stage on the set of 'best' actions. If after processing the
/// subsequent stages of the 'best' actions no candidates remain, this process will repeat on the set of
/// 'other' candidate actions from this stage (those without a constraint).
///
public interface IActionConstraint : IActionConstraintMetadata
{
///
- /// The constraint order.
+ /// The constraint order.
///
int Order { get; }
diff --git a/src/Microsoft.AspNet.Mvc.Core/ActionConstraints/IActionConstraintFactory.cs b/src/Microsoft.AspNet.Mvc.Core/ActionConstraints/IActionConstraintFactory.cs
index 2ab1ff5b85..c59b8acddc 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ActionConstraints/IActionConstraintFactory.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ActionConstraints/IActionConstraintFactory.cs
@@ -6,12 +6,12 @@ using System;
namespace Microsoft.AspNet.Mvc
{
///
- /// A factory for .
+ /// A factory for .
///
///
/// will be invoked by
/// to create constraint instances for an action.
- ///
+ ///
/// Place an attribute implementing this interface on a controller or action to insert an action
/// constraint created by a factory.
///
diff --git a/src/Microsoft.AspNet.Mvc.Core/ActionContext.cs b/src/Microsoft.AspNet.Mvc.Core/ActionContext.cs
index 8720abf600..ad2135f90b 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ActionContext.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ActionContext.cs
@@ -40,9 +40,9 @@ namespace Microsoft.AspNet.Mvc
public ModelStateDictionary ModelState { get; private set; }
public ActionDescriptor ActionDescriptor { get; private set; }
-
+
///
- /// Input formatters associated with this context.
+ /// Input formatters associated with this context.
/// The formatters are populated only after IInputFormattersProvider runs.
///
public IList InputFormatters { get; set; }
diff --git a/src/Microsoft.AspNet.Mvc.Core/ActionDescriptorExtensions.cs b/src/Microsoft.AspNet.Mvc.Core/ActionDescriptorExtensions.cs
index 1d961f2513..b11eae7627 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ActionDescriptorExtensions.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ActionDescriptorExtensions.cs
@@ -9,7 +9,7 @@ namespace Microsoft.AspNet.Mvc
public static class ActionDescriptorExtensions
{
///
- /// Gets the value of a property from the collection
+ /// Gets the value of a property from the collection
/// using the provided value of as the key.
///
/// The type of the property.
diff --git a/src/Microsoft.AspNet.Mvc.Core/ActionResults/ObjectResult.cs b/src/Microsoft.AspNet.Mvc.Core/ActionResults/ObjectResult.cs
index 38f49dd49a..3564310835 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ActionResults/ObjectResult.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ActionResults/ObjectResult.cs
@@ -64,7 +64,7 @@ namespace Microsoft.AspNet.Mvc
if (ContentTypes == null || ContentTypes.Count == 0)
{
- // Select based on sorted accept headers.
+ // Select based on sorted accept headers.
selectedFormatter = SelectFormatterUsingSortedAcceptHeaders(
formatterContext,
formatters,
@@ -78,17 +78,17 @@ namespace Microsoft.AspNet.Mvc
MediaTypeHeaderValue incomingContentType = null;
MediaTypeHeaderValue.TryParse(requestContentType, out incomingContentType);
- // In case the incomingContentType is null (as can be the case with get requests),
- // we need to pick the first formatter which
- // can support writing this type.
+ // In case the incomingContentType is null (as can be the case with get requests),
+ // we need to pick the first formatter which
+ // can support writing this type.
var contentTypes = new[] { incomingContentType };
selectedFormatter = SelectFormatterUsingAnyAcceptableContentType(
formatterContext,
formatters,
contentTypes);
- // This would be the case when no formatter could write the type base on the
- // accept headers and the request content type. Fallback on type based match.
+ // This would be the case when no formatter could write the type base on the
+ // accept headers and the request content type. Fallback on type based match.
if (selectedFormatter == null)
{
foreach (var formatter in formatters)
@@ -116,7 +116,7 @@ namespace Microsoft.AspNet.Mvc
}
else
{
- // Filter and remove accept headers which cannot support any of the user specified content types.
+ // Filter and remove accept headers which cannot support any of the user specified content types.
var filteredAndSortedAcceptHeaders = sortedAcceptHeaders
.Where(acceptHeader =>
ContentTypes
@@ -134,9 +134,9 @@ namespace Microsoft.AspNet.Mvc
if (selectedFormatter == null)
{
- // Either there were no acceptHeaders that were present OR
+ // Either there were no acceptHeaders that were present OR
// There were no accept headers which matched OR
- // There were acceptHeaders which matched but there was no formatter
+ // There were acceptHeaders which matched but there was no formatter
// which supported any of them.
// In any of these cases, if the user has specified content types,
// do a last effort to find a formatter which can write any of the user specified content type.
@@ -158,14 +158,14 @@ namespace Microsoft.AspNet.Mvc
IOutputFormatter selectedFormatter = null;
foreach (var contentType in sortedAcceptHeaders)
{
- // Loop through each of the formatters and see if any one will support this
- // mediaType Value.
+ // Loop through each of the formatters and see if any one will support this
+ // mediaType Value.
selectedFormatter = formatters.FirstOrDefault(
formatter =>
formatter.CanWriteResult(formatterContext, contentType));
if (selectedFormatter != null)
{
- // we found our match.
+ // we found our match.
break;
}
}
diff --git a/src/Microsoft.AspNet.Mvc.Core/AntiForgery/AntiForgeryOptions.cs b/src/Microsoft.AspNet.Mvc.Core/AntiForgery/AntiForgeryOptions.cs
index f9aaca1ae1..af92875826 100644
--- a/src/Microsoft.AspNet.Mvc.Core/AntiForgery/AntiForgeryOptions.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/AntiForgery/AntiForgeryOptions.cs
@@ -62,7 +62,7 @@ namespace Microsoft.AspNet.Mvc
{
if (value == null)
{
- throw new ArgumentNullException("value",
+ throw new ArgumentNullException("value",
Resources.FormatPropertyOfTypeCannotBeNull(
"FormFieldName", typeof(AntiForgeryOptions)));
}
diff --git a/src/Microsoft.AspNet.Mvc.Core/AntiForgery/AntiForgeryTokenSet.cs b/src/Microsoft.AspNet.Mvc.Core/AntiForgery/AntiForgeryTokenSet.cs
index 29a3c42c8a..e3158ffdc2 100644
--- a/src/Microsoft.AspNet.Mvc.Core/AntiForgery/AntiForgeryTokenSet.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/AntiForgery/AntiForgeryTokenSet.cs
@@ -18,7 +18,7 @@ namespace Microsoft.AspNet.Mvc
FormToken = formToken;
// Cookie Token is allowed to be null in the case when the old cookie is valid
- // and there is no new cookieToken generated.
+ // and there is no new cookieToken generated.
CookieToken = cookieToken;
}
diff --git a/src/Microsoft.AspNet.Mvc.Core/AntiForgery/AntiForgeryTokenStore.cs b/src/Microsoft.AspNet.Mvc.Core/AntiForgery/AntiForgeryTokenStore.cs
index c8c5330578..99b7a93b7e 100644
--- a/src/Microsoft.AspNet.Mvc.Core/AntiForgery/AntiForgeryTokenStore.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/AntiForgery/AntiForgeryTokenStore.cs
@@ -14,8 +14,8 @@ namespace Microsoft.AspNet.Mvc
{
private readonly AntiForgeryOptions _config;
private readonly IAntiForgeryTokenSerializer _serializer;
-
- internal AntiForgeryTokenStore([NotNull] AntiForgeryOptions config,
+
+ internal AntiForgeryTokenStore([NotNull] AntiForgeryOptions config,
[NotNull] IAntiForgeryTokenSerializer serializer)
{
_config = config;
diff --git a/src/Microsoft.AspNet.Mvc.Core/AntiForgery/TokenProvider.cs b/src/Microsoft.AspNet.Mvc.Core/AntiForgery/TokenProvider.cs
index f1198e9b33..6c709f3141 100644
--- a/src/Microsoft.AspNet.Mvc.Core/AntiForgery/TokenProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/AntiForgery/TokenProvider.cs
@@ -15,7 +15,7 @@ namespace Microsoft.AspNet.Mvc
private readonly AntiForgeryOptions _config;
private readonly IAntiForgeryAdditionalDataProvider _additionalDataProvider;
- internal TokenProvider(AntiForgeryOptions config,
+ internal TokenProvider(AntiForgeryOptions config,
IClaimUidExtractor claimUidExtractor,
IAntiForgeryAdditionalDataProvider additionalDataProvider)
{
diff --git a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/ActionModel.cs b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/ActionModel.cs
index 03ae05474b..077b868482 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/ActionModel.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/ActionModel.cs
@@ -9,7 +9,7 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
{
public class ActionModel
{
- public ActionModel([NotNull] MethodInfo actionMethod,
+ public ActionModel([NotNull] MethodInfo actionMethod,
[NotNull] IReadOnlyList attributes)
{
ActionMethod = actionMethod;
diff --git a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/ApiExplorerModel.cs b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/ApiExplorerModel.cs
index 800ebf587e..4a2b142604 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/ApiExplorerModel.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/ApiExplorerModel.cs
@@ -26,7 +26,7 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
}
///
- /// If true , objects will be created for the associated
+ /// If true , objects will be created for the associated
/// controller or action.
///
///
@@ -35,7 +35,7 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
public bool? IsVisible { get; set; }
///
- /// The value for of
+ /// The value for of
/// objects created for the associated controller or action.
///
public string GroupName { get; set; }
diff --git a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/ApplicationModelConventions.cs b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/ApplicationModelConventions.cs
index 038dc7e7e8..4053de2651 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/ApplicationModelConventions.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/ApplicationModelConventions.cs
@@ -17,7 +17,7 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
/// The .
/// The set of conventions.
public static void ApplyConventions(
- [NotNull] ApplicationModel applicationModel,
+ [NotNull] ApplicationModel applicationModel,
[NotNull] IEnumerable conventions)
{
// Conventions are applied from the outside-in to allow for scenarios where an action overrides
diff --git a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/AttributeRouteModel.cs b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/AttributeRouteModel.cs
index c0b08084f6..1130ecac2c 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/AttributeRouteModel.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/AttributeRouteModel.cs
@@ -372,7 +372,7 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
[Flags]
private enum TemplateParserState : uint
{
- // default state - allow non-special characters to pass through to the
+ // default state - allow non-special characters to pass through to the
// buffer.
Plaintext = 0,
diff --git a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/ControllerModel.cs b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/ControllerModel.cs
index ca6651efcd..247a8b1108 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/ControllerModel.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/ControllerModel.cs
@@ -9,7 +9,7 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
{
public class ControllerModel
{
- public ControllerModel([NotNull] TypeInfo controllerType,
+ public ControllerModel([NotNull] TypeInfo controllerType,
[NotNull] IReadOnlyList attributes)
{
ControllerType = controllerType;
diff --git a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/DefaultActionModelBuilder.cs b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/DefaultActionModelBuilder.cs
index 62c209a589..eb6c11ab56 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/DefaultActionModelBuilder.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/DefaultActionModelBuilder.cs
@@ -40,12 +40,12 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
// If the attribute that 'defines' a route is NOT an IActionHttpMethodProvider, then we'll include with
// it, any IActionHttpMethodProvider that are 'silent' IRouteTemplateProviders. In this case the 'extra'
// action for silent route providers isn't needed.
- //
+ //
// Ex:
// [HttpGet]
// [AcceptVerbs("POST", "PUT")]
// [HttpPost("Api/Things")]
- // public void DoThing()
+ // public void DoThing()
//
// This will generate 2 actions:
// 1. [HttpPost("Api/Things")]
@@ -54,7 +54,7 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
// Note that having a route attribute that doesn't define a route template _might_ be an error. We
// don't have enough context to really know at this point so we just pass it on.
var routeProviders = new List();
-
+
var createActionForSilentRouteProviders = false;
foreach (var attribute in attributes)
{
@@ -84,7 +84,7 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
// [HttpGet]
// [HttpPost("Products")]
// public void Foo() { }
- //
+ //
// Is two actions. And...
//
// [HttpGet]
@@ -242,14 +242,14 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
/// An for the given .
///
/// An action-method in code may expand into multiple instances depending on how
- /// the action is routed. In the case of multiple routing attributes, this method will invoked be once for
+ /// the action is routed. In the case of multiple routing attributes, this method will invoked be once for
/// each action that can be created.
- ///
+ ///
/// If overriding this method, use the provided list to find metadata related to
/// the action being created.
///
protected virtual ActionModel CreateActionModel(
- [NotNull] MethodInfo methodInfo,
+ [NotNull] MethodInfo methodInfo,
[NotNull] IReadOnlyList attributes)
{
var actionModel = new ActionModel(methodInfo, attributes)
@@ -289,7 +289,7 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
.SelectMany(a => a.HttpMethods)
.Distinct());
- var routeTemplateProvider =
+ var routeTemplateProvider =
attributes
.OfType()
.Where(a => !IsSilentRouteAttribute(a))
@@ -325,8 +325,8 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
private bool IsSilentRouteAttribute(IRouteTemplateProvider routeTemplateProvider)
{
- return
- routeTemplateProvider.Template == null &&
+ return
+ routeTemplateProvider.Template == null &&
routeTemplateProvider.Order == null &&
routeTemplateProvider.Name == null;
}
diff --git a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IActionModelBuilder.cs b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IActionModelBuilder.cs
index b6585b5439..ee4aa5134c 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IActionModelBuilder.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IActionModelBuilder.cs
@@ -8,7 +8,7 @@ using System.Reflection;
namespace Microsoft.AspNet.Mvc.ApplicationModels
{
///
- /// Creates a set of for a method.
+ /// Creates a set of for a method.
///
public interface IActionModelBuilder
{
@@ -21,7 +21,7 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
/// A set of or null.
///
/// Instances of returned from this interface should have their
- /// initialized.
+ /// initialized.
///
IEnumerable BuildActionModels([NotNull] TypeInfo typeInfo, [NotNull] MethodInfo methodInfo);
}
diff --git a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IActionModelConvention.cs b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IActionModelConvention.cs
index f38fb21d89..272d59ea3a 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IActionModelConvention.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IActionModelConvention.cs
@@ -9,9 +9,9 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
///
/// To use this interface, create an class which implements the interface and
/// place it on an action method.
- ///
- /// customizations run after
- /// customications and before
+ ///
+ /// customizations run after
+ /// customications and before
/// customizations.
///
public interface IActionModelConvention
diff --git a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IApplicationModelConvention.cs b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IApplicationModelConvention.cs
index 75b716e4f8..ea746a6074 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IApplicationModelConvention.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IApplicationModelConvention.cs
@@ -9,7 +9,7 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
///
/// Implementaions of this interface can be registered in
/// to customize metadata about the application.
- ///
+ ///
/// run before other types of customizations to the
/// reflected model.
///
diff --git a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IControllerModelBuilder.cs b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IControllerModelBuilder.cs
index 0184e829ca..a6c588dbc4 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IControllerModelBuilder.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IControllerModelBuilder.cs
@@ -6,7 +6,7 @@ using System.Reflection;
namespace Microsoft.AspNet.Mvc.ApplicationModels
{
///
- /// Creates a set of for a type.
+ /// Creates a set of for a type.
///
public interface IControllerModelBuilder
{
@@ -18,7 +18,7 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
/// A or null.
///
/// Instances of returned from this interface should have their
- /// initialized.
+ /// initialized.
///
ControllerModel BuildControllerModel([NotNull] TypeInfo typeInfo);
}
diff --git a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IControllerModelConvention.cs b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IControllerModelConvention.cs
index 609795a6d1..4dfd7cf79f 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IControllerModelConvention.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IControllerModelConvention.cs
@@ -9,9 +9,9 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
///
/// To use this interface, create an class which implements the interface and
/// place it on a controller class.
- ///
- /// customizations run after
- /// customizations and before
+ ///
+ /// customizations run after
+ /// customizations and before
/// customizations.
///
public interface IControllerModelConvention
diff --git a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IParameterModelConvention.cs b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IParameterModelConvention.cs
index 173946c1f0..d356f38180 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IParameterModelConvention.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/IParameterModelConvention.cs
@@ -9,8 +9,8 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
///
/// To use this interface, create an class which implements the interface and
/// place it on an action method parameter.
- ///
- /// customizations run after
+ ///
+ /// customizations run after
/// customizations.
///
public interface IParameterModelConvention
diff --git a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/ParameterModel.cs b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/ParameterModel.cs
index 4753eac379..49bef96ee1 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/ParameterModel.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ApplicationModels/ParameterModel.cs
@@ -9,7 +9,7 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
{
public class ParameterModel
{
- public ParameterModel([NotNull] ParameterInfo parameterInfo,
+ public ParameterModel([NotNull] ParameterInfo parameterInfo,
[NotNull] IReadOnlyList attributes)
{
ParameterInfo = parameterInfo;
diff --git a/src/Microsoft.AspNet.Mvc.Core/ControllerActionExecutor.cs b/src/Microsoft.AspNet.Mvc.Core/ControllerActionExecutor.cs
index 6a8da6a80d..e04fc17c96 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ControllerActionExecutor.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ControllerActionExecutor.cs
@@ -13,7 +13,7 @@ namespace Microsoft.AspNet.Mvc
{
public static class ControllerActionExecutor
{
- private static readonly MethodInfo _convertOfTMethod =
+ private static readonly MethodInfo _convertOfTMethod =
typeof(ControllerActionExecutor).GetRuntimeMethods().Single(methodInfo => methodInfo.Name == "Convert");
// Method called via reflection.
@@ -24,8 +24,8 @@ namespace Microsoft.AspNet.Mvc
}
public static async Task ExecuteAsync(
- MethodInfo actionMethodInfo,
- object instance,
+ MethodInfo actionMethodInfo,
+ object instance,
IDictionary actionArguments)
{
var orderedArguments = PrepareArguments(actionArguments, actionMethodInfo.GetParameters());
@@ -33,8 +33,8 @@ namespace Microsoft.AspNet.Mvc
}
public static async Task ExecuteAsync(
- MethodInfo actionMethodInfo,
- object instance,
+ MethodInfo actionMethodInfo,
+ object instance,
object[] orderedActionArguments)
{
object invocationResult = null;
@@ -50,9 +50,9 @@ namespace Microsoft.AspNet.Mvc
}
return await CoerceResultToTaskAsync(
- invocationResult,
- actionMethodInfo.ReturnType,
- actionMethodInfo.Name,
+ invocationResult,
+ actionMethodInfo.ReturnType,
+ actionMethodInfo.Name,
actionMethodInfo.DeclaringType);
}
@@ -62,9 +62,9 @@ namespace Microsoft.AspNet.Mvc
// Returning Task enables us to await on the result.
// This method is intentionally not using async pattern to keep jit time (on cold start) to a minimum.
private static Task CoerceResultToTaskAsync(
- object result,
- Type returnType,
- string methodName,
+ object result,
+ Type returnType,
+ string methodName,
Type declaringType)
{
// If it is either a Task or Task
@@ -92,7 +92,7 @@ namespace Microsoft.AspNet.Mvc
// 1. Types which have derived from Task and Task,
// 2. Action methods which use dynamic keyword but return a Task or Task.
throw new InvalidOperationException(Resources.FormatActionExecutor_UnexpectedTaskInstance(
- methodName,
+ methodName,
declaringType));
}
else
@@ -102,7 +102,7 @@ namespace Microsoft.AspNet.Mvc
}
private static object[] PrepareArguments(
- IDictionary actionParameters,
+ IDictionary actionParameters,
ParameterInfo[] declaredParameterInfos)
{
var count = declaredParameterInfos.Length;
diff --git a/src/Microsoft.AspNet.Mvc.Core/ControllerActionInvoker.cs b/src/Microsoft.AspNet.Mvc.Core/ControllerActionInvoker.cs
index 6211c156cf..ffbed7e548 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ControllerActionInvoker.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ControllerActionInvoker.cs
@@ -54,7 +54,7 @@ namespace Microsoft.AspNet.Mvc
_controllerFactory.ReleaseController(ActionContext.Controller);
}
}
-
+
protected override async Task InvokeActionAsync(ActionExecutingContext actionExecutingContext)
{
var actionMethodInfo = _descriptor.MethodInfo;
@@ -94,7 +94,7 @@ namespace Microsoft.AspNet.Mvc
};
}
- // Unwrap potential Task types.
+ // Unwrap potential Task types.
var actualReturnType = TypeHelper.GetTaskInnerTypeOrNull(declaredReturnType) ?? declaredReturnType;
if (actionReturnValue == null && typeof(IActionResult).IsAssignableFrom(actualReturnType))
{
diff --git a/src/Microsoft.AspNet.Mvc.Core/DefaultActionDescriptorsCollectionProvider.cs b/src/Microsoft.AspNet.Mvc.Core/DefaultActionDescriptorsCollectionProvider.cs
index 54de9f7b12..f48415b83c 100644
--- a/src/Microsoft.AspNet.Mvc.Core/DefaultActionDescriptorsCollectionProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/DefaultActionDescriptorsCollectionProvider.cs
@@ -27,7 +27,7 @@ namespace Microsoft.AspNet.Mvc
///
/// Returns a cached collection of .
///
- public ActionDescriptorsCollection ActionDescriptors
+ public ActionDescriptorsCollection ActionDescriptors
{
get
{
@@ -42,8 +42,8 @@ namespace Microsoft.AspNet.Mvc
private ActionDescriptorsCollection GetCollection()
{
- var actionDescriptorProvider =
- _serviceProvider.GetRequiredService>();
+ var actionDescriptorProvider =
+ _serviceProvider.GetRequiredService>();
var actionDescriptorProviderContext = new ActionDescriptorProviderContext();
actionDescriptorProvider.Invoke(actionDescriptorProviderContext);
diff --git a/src/Microsoft.AspNet.Mvc.Core/DefaultActionSelector.cs b/src/Microsoft.AspNet.Mvc.Core/DefaultActionSelector.cs
index 3bc8ea8a65..3baa17a60b 100644
--- a/src/Microsoft.AspNet.Mvc.Core/DefaultActionSelector.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/DefaultActionSelector.cs
@@ -129,11 +129,11 @@ namespace Microsoft.AspNet.Mvc
}
private IReadOnlyList EvaluateActionConstraints(
- RouteContext context,
- IReadOnlyList candidates,
+ RouteContext context,
+ IReadOnlyList candidates,
int? startingOrder)
{
- // Find the next group of constraints to process. This will be the lowest value of
+ // Find the next group of constraints to process. This will be the lowest value of
// order that is higher than startingOrder.
int? order = null;
foreach (var candidate in candidates)
@@ -265,7 +265,7 @@ namespace Microsoft.AspNet.Mvc
_actionConstraintProvider.Invoke(context);
- return
+ return
context.Results
.Where(item => item.Constraint != null)
.Select(item => item.Constraint)
diff --git a/src/Microsoft.AspNet.Mvc.Core/DefaultControllerFactory.cs b/src/Microsoft.AspNet.Mvc.Core/DefaultControllerFactory.cs
index 898de4bf8e..b818742eb0 100644
--- a/src/Microsoft.AspNet.Mvc.Core/DefaultControllerFactory.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/DefaultControllerFactory.cs
@@ -13,7 +13,7 @@ namespace Microsoft.AspNet.Mvc
private readonly ITypeActivator _typeActivator;
private readonly IControllerActivator _controllerActivator;
- public DefaultControllerFactory(IServiceProvider serviceProvider,
+ public DefaultControllerFactory(IServiceProvider serviceProvider,
ITypeActivator typeActivator,
IControllerActivator controllerActivator)
{
diff --git a/src/Microsoft.AspNet.Mvc.Core/DefaultValidationExcludeFiltersProvider.cs b/src/Microsoft.AspNet.Mvc.Core/DefaultValidationExcludeFiltersProvider.cs
index ddffe2eb20..b649e03773 100644
--- a/src/Microsoft.AspNet.Mvc.Core/DefaultValidationExcludeFiltersProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/DefaultValidationExcludeFiltersProvider.cs
@@ -18,7 +18,7 @@ namespace Microsoft.AspNet.Mvc.OptionDescriptors
///
/// An accessor to the configured for this application.
/// An instance used to instantiate types.
- /// A instance that retrieves services from the
+ /// A instance that retrieves services from the
/// service collection.
public DefaultValidationExcludeFiltersProvider(IOptions optionsAccessor,
ITypeActivator typeActivator,
diff --git a/src/Microsoft.AspNet.Mvc.Core/Description/ApiDescription.cs b/src/Microsoft.AspNet.Mvc.Core/Description/ApiDescription.cs
index ada31a2e60..ff3d97bc8b 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Description/ApiDescription.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Description/ApiDescription.cs
@@ -64,7 +64,7 @@ namespace Microsoft.AspNet.Mvc.Description
/// The CLR data type of the response or null.
///
///
- /// Will be null if the action returns no response, or if the response type is unclear. Use
+ /// Will be null if the action returns no response, or if the response type is unclear. Use
/// on an action method to specify a response type.
///
public Type ResponseType { get; set; }
diff --git a/src/Microsoft.AspNet.Mvc.Core/Description/ApiDescriptionActionData.cs b/src/Microsoft.AspNet.Mvc.Core/Description/ApiDescriptionActionData.cs
index cd37e39226..74a19b1180 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Description/ApiDescriptionActionData.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Description/ApiDescriptionActionData.cs
@@ -4,13 +4,13 @@
namespace Microsoft.AspNet.Mvc.Description
{
///
- /// Represents data used to build an , stored as part of the
+ /// Represents data used to build an , stored as part of the
/// .
///
public class ApiDescriptionActionData
{
///
- /// The of objects for the associated
+ /// The of objects for the associated
/// action.
///
public string GroupName { get; set; }
diff --git a/src/Microsoft.AspNet.Mvc.Core/Description/ApiDescriptionExtensions.cs b/src/Microsoft.AspNet.Mvc.Core/Description/ApiDescriptionExtensions.cs
index c1dfc550a4..3f3b9f4355 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Description/ApiDescriptionExtensions.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Description/ApiDescriptionExtensions.cs
@@ -9,7 +9,7 @@ namespace Microsoft.AspNet.Mvc.Description
public static class ApiDescriptionExtensions
{
///
- /// Gets the value of a property from the collection
+ /// Gets the value of a property from the collection
/// using the provided value of as the key.
///
/// The type of the property.
diff --git a/src/Microsoft.AspNet.Mvc.Core/Description/ApiExplorerSettingsAttribute.cs b/src/Microsoft.AspNet.Mvc.Core/Description/ApiExplorerSettingsAttribute.cs
index fe6a7732b8..235cae7e62 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Description/ApiExplorerSettingsAttribute.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Description/ApiExplorerSettingsAttribute.cs
@@ -11,9 +11,9 @@ namespace Microsoft.AspNet.Mvc
/// controller class or action method.
///
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
- public class ApiExplorerSettingsAttribute :
- Attribute,
- IApiDescriptionGroupNameProvider,
+ public class ApiExplorerSettingsAttribute :
+ Attribute,
+ IApiDescriptionGroupNameProvider,
IApiDescriptionVisibilityProvider
{
///
diff --git a/src/Microsoft.AspNet.Mvc.Core/Description/DefaultApiDescriptionProvider.cs b/src/Microsoft.AspNet.Mvc.Core/Description/DefaultApiDescriptionProvider.cs
index b293985f75..c6a55e9cfb 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Description/DefaultApiDescriptionProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Description/DefaultApiDescriptionProvider.cs
@@ -40,7 +40,7 @@ namespace Microsoft.AspNet.Mvc.Description
}
///
- public int Order
+ public int Order
{
get { return DefaultOrder.DefaultFrameworkSortOrder; }
}
@@ -300,10 +300,10 @@ namespace Microsoft.AspNet.Mvc.Description
}
private static IEnumerable GetConstraints(
- IInlineConstraintResolver constraintResolver,
+ IInlineConstraintResolver constraintResolver,
IEnumerable constraints)
{
- return
+ return
constraints
.Select(c => constraintResolver.ResolveConstraint(c.Constraint))
.Where(c => c != null)
diff --git a/src/Microsoft.AspNet.Mvc.Core/Filters/DefaultFilterProvider.cs b/src/Microsoft.AspNet.Mvc.Core/Filters/DefaultFilterProvider.cs
index ab1b7f4d85..24bbe8e273 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Filters/DefaultFilterProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Filters/DefaultFilterProvider.cs
@@ -80,10 +80,10 @@ namespace Microsoft.AspNet.Mvc.Filters
// BinarySearch will return the index of where the item _should_be_ in the list.
//
- // If index > 0:
+ // If index > 0:
// Other items in the list have the same order and scope - the item was 'found'.
//
- // If index < 0:
+ // If index < 0:
// No other items in the list have the same order and scope - the item was not 'found'
// Index will be the bitwise compliment of of the 'right' location.
var index = context.Results.BinarySearch(item, FilterItemOrderComparer.Comparer);
diff --git a/src/Microsoft.AspNet.Mvc.Core/Filters/FilterCollectionExtensions.cs b/src/Microsoft.AspNet.Mvc.Core/Filters/FilterCollectionExtensions.cs
index 73f4dd6601..a4812253af 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Filters/FilterCollectionExtensions.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Filters/FilterCollectionExtensions.cs
@@ -63,7 +63,7 @@ namespace Microsoft.AspNet.Mvc
/// Type representing an .
/// An representing the added service type.
///
- /// Filter instances will created through dependency injection. Use
+ /// Filter instances will created through dependency injection. Use
/// to register a service that will be created via
/// type activation.
///
@@ -82,7 +82,7 @@ namespace Microsoft.AspNet.Mvc
/// The order of the added filter.
/// An representing the added service type.
///
- /// Filter instances will created through dependency injection. Use
+ /// Filter instances will created through dependency injection. Use
/// to register a service that will be created via
/// type activation.
///
diff --git a/src/Microsoft.AspNet.Mvc.Core/Filters/FilterDescriptor.cs b/src/Microsoft.AspNet.Mvc.Core/Filters/FilterDescriptor.cs
index 44d9e62d1a..eabbd1a2e4 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Filters/FilterDescriptor.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Filters/FilterDescriptor.cs
@@ -7,15 +7,15 @@ namespace Microsoft.AspNet.Mvc
/// Descriptor for an .
///
///
- /// describes an with an order and scope.
- ///
+ /// describes an with an order and scope.
+ ///
/// Order and scope control the execution order of filters. Filters with a higher value of Order execute
- /// later in the pipeline.
- ///
+ /// later in the pipeline.
+ ///
/// When filters have the same Order, the Scope value is used to determine the order of execution. Filters
/// with a higher value of Scope execute later in the pipeline. See for commonly
/// used scopes.
- ///
+ ///
/// For implementions, the filter runs only after an exception has occurred,
/// and so the observed order of execution will be opposite that of other filters.
///
@@ -27,7 +27,7 @@ namespace Microsoft.AspNet.Mvc
/// The .
/// The filter scope.
///
- /// If the implements , then the value of
+ /// If the implements , then the value of
/// will be taken from . Otherwise the value
/// of will default to 0 .
///
diff --git a/src/Microsoft.AspNet.Mvc.Core/Filters/FilterScope.cs b/src/Microsoft.AspNet.Mvc.Core/Filters/FilterScope.cs
index e2f0da4b76..8e344ec9ae 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Filters/FilterScope.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Filters/FilterScope.cs
@@ -4,8 +4,8 @@
namespace Microsoft.AspNet.Mvc
{
///
- /// Contains constant values for known filter scopes.
- ///
+ /// Contains constant values for known filter scopes.
+ ///
/// Scope defines the ordering of filters that have the same order. Scope is by-default
/// defined by how a filter is registered.
///
diff --git a/src/Microsoft.AspNet.Mvc.Core/Filters/ProducesAttribute.cs b/src/Microsoft.AspNet.Mvc.Core/Filters/ProducesAttribute.cs
index 4ec57cb42f..f0e4cda05a 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Filters/ProducesAttribute.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Filters/ProducesAttribute.cs
@@ -9,7 +9,7 @@ using Microsoft.AspNet.Mvc.HeaderValueAbstractions;
namespace Microsoft.AspNet.Mvc
{
///
- /// Specifies the allowed content types and the type of the value returned by the action
+ /// Specifies the allowed content types and the type of the value returned by the action
/// which can be used to select a formatter while executing .
///
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
diff --git a/src/Microsoft.AspNet.Mvc.Core/Filters/ValidateAntiForgeryTokenAuthorizationFilter.cs b/src/Microsoft.AspNet.Mvc.Core/Filters/ValidateAntiForgeryTokenAuthorizationFilter.cs
index 830702577a..f06dd2a92f 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Filters/ValidateAntiForgeryTokenAuthorizationFilter.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Filters/ValidateAntiForgeryTokenAuthorizationFilter.cs
@@ -8,7 +8,7 @@ namespace Microsoft.AspNet.Mvc
public class ValidateAntiForgeryTokenAuthorizationFilter : IAsyncAuthorizationFilter
{
private readonly AntiForgery _antiForgery;
-
+
public ValidateAntiForgeryTokenAuthorizationFilter([NotNull] AntiForgery antiForgery)
{
_antiForgery = antiForgery;
diff --git a/src/Microsoft.AspNet.Mvc.Core/Formatters/DefaultInputFormatterSelector.cs b/src/Microsoft.AspNet.Mvc.Core/Formatters/DefaultInputFormatterSelector.cs
index 97cc5ad771..3d335122e7 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Formatters/DefaultInputFormatterSelector.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Formatters/DefaultInputFormatterSelector.cs
@@ -15,7 +15,7 @@ namespace Microsoft.AspNet.Mvc
return formatter;
}
}
-
+
return null;
}
}
diff --git a/src/Microsoft.AspNet.Mvc.Core/Formatters/DefaultInputFormattersProvider.cs b/src/Microsoft.AspNet.Mvc.Core/Formatters/DefaultInputFormattersProvider.cs
index 92f2ba2b0d..ea2df785a2 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Formatters/DefaultInputFormattersProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Formatters/DefaultInputFormattersProvider.cs
@@ -18,7 +18,7 @@ namespace Microsoft.AspNet.Mvc.OptionDescriptors
///
/// An accessor to the configured for this application.
/// An instance used to instantiate types.
- /// A instance that retrieves services from the
+ /// A instance that retrieves services from the
/// service collection.
public DefaultInputFormattersProvider(IOptions optionsAccessor,
ITypeActivator typeActivator,
diff --git a/src/Microsoft.AspNet.Mvc.Core/Formatters/DefaultOutputFormattersProvider.cs b/src/Microsoft.AspNet.Mvc.Core/Formatters/DefaultOutputFormattersProvider.cs
index c29d978849..86163d7663 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Formatters/DefaultOutputFormattersProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Formatters/DefaultOutputFormattersProvider.cs
@@ -18,7 +18,7 @@ namespace Microsoft.AspNet.Mvc
///
/// An accessor to the configured for this application.
/// An instance used to instantiate types.
- /// A instance that retrieves services from the
+ /// A instance that retrieves services from the
/// service collection.
public DefaultOutputFormattersProvider(IOptions optionsAccessor,
ITypeActivator typeActivator,
diff --git a/src/Microsoft.AspNet.Mvc.Core/Formatters/DefaultTypeBasedExcludeFilter.cs b/src/Microsoft.AspNet.Mvc.Core/Formatters/DefaultTypeBasedExcludeFilter.cs
index 2926cd546f..2e4d7e10f3 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Formatters/DefaultTypeBasedExcludeFilter.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Formatters/DefaultTypeBasedExcludeFilter.cs
@@ -7,7 +7,7 @@ using Microsoft.AspNet.Mvc.ModelBinding;
namespace Microsoft.AspNet.Mvc
{
///
- /// Provides an implementation of which can filter
+ /// Provides an implementation of which can filter
/// based on a type.
///
public class DefaultTypeBasedExcludeFilter : IExcludeTypeValidationFilter
@@ -30,6 +30,6 @@ namespace Microsoft.AspNet.Mvc
public bool IsTypeExcluded([NotNull] Type propertyType)
{
return ExcludedType.IsAssignableFrom(propertyType);
- }
+ }
}
}
diff --git a/src/Microsoft.AspNet.Mvc.Core/Formatters/DefaultTypeNameBasedExcludeFilter.cs b/src/Microsoft.AspNet.Mvc.Core/Formatters/DefaultTypeNameBasedExcludeFilter.cs
index 89c45c2bab..16aa235192 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Formatters/DefaultTypeNameBasedExcludeFilter.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Formatters/DefaultTypeNameBasedExcludeFilter.cs
@@ -7,7 +7,7 @@ using Microsoft.AspNet.Mvc.ModelBinding;
namespace Microsoft.AspNet.Mvc
{
///
- /// Provides an implementation of which can filter
+ /// Provides an implementation of which can filter
/// based on a type full name.
///
public class DefaultTypeNameBasedExcludeFilter : IExcludeTypeValidationFilter
diff --git a/src/Microsoft.AspNet.Mvc.Core/Formatters/DelegatingStream.cs b/src/Microsoft.AspNet.Mvc.Core/Formatters/DelegatingStream.cs
index b911aab3a7..c34bb0578f 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Formatters/DelegatingStream.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Formatters/DelegatingStream.cs
@@ -185,7 +185,7 @@ namespace Microsoft.AspNet.Mvc
///
protected override void Dispose(bool disposing)
{
- // No-op. In CoreCLR this is equivalent to Close.
+ // No-op. In CoreCLR this is equivalent to Close.
// Given that we don't own the underlying stream, we never want to do anything interesting here.
}
}
diff --git a/src/Microsoft.AspNet.Mvc.Core/Formatters/HttpNoContentOutputFormatter.cs b/src/Microsoft.AspNet.Mvc.Core/Formatters/HttpNoContentOutputFormatter.cs
index 614414d9db..7c4327e7b4 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Formatters/HttpNoContentOutputFormatter.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Formatters/HttpNoContentOutputFormatter.cs
@@ -22,7 +22,7 @@ namespace Microsoft.AspNet.Mvc
public bool CanWriteResult(OutputFormatterContext context, MediaTypeHeaderValue contentType)
{
// ignore the contentType and just look at the content.
- // This formatter will be selected if the content is null.
+ // This formatter will be selected if the content is null.
// We check for Task as a user can directly create an ObjectContentResult with the unwrapped type.
if(context.DeclaredType == typeof(void) || context.DeclaredType == typeof(Task))
{
@@ -33,8 +33,8 @@ namespace Microsoft.AspNet.Mvc
}
public IReadOnlyList GetSupportedContentTypes(
- Type declaredType,
- Type runtimeType,
+ Type declaredType,
+ Type runtimeType,
MediaTypeHeaderValue contentType)
{
return null;
diff --git a/src/Microsoft.AspNet.Mvc.Core/Formatters/IInputFormatter.cs b/src/Microsoft.AspNet.Mvc.Core/Formatters/IInputFormatter.cs
index 2c69347ee9..ac56ecd526 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Formatters/IInputFormatter.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Formatters/IInputFormatter.cs
@@ -18,7 +18,7 @@ namespace Microsoft.AspNet.Mvc
/// an object of the specified type.
///
/// Input formatter context associated with this call.
- /// True if this supports the passed in
+ /// True if this supports the passed in
/// request's content-type and is able to de-serialize the request body.
/// False otherwise.
bool CanRead(InputFormatterContext context);
diff --git a/src/Microsoft.AspNet.Mvc.Core/Formatters/IJsonOutputFormatter.cs b/src/Microsoft.AspNet.Mvc.Core/Formatters/IJsonOutputFormatter.cs
index db86820470..cc07f4c437 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Formatters/IJsonOutputFormatter.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Formatters/IJsonOutputFormatter.cs
@@ -7,10 +7,10 @@ namespace Microsoft.AspNet.Mvc
/// An output formatter that specializes in writing JSON content.
///
///
- /// The class filter the collection of
+ /// The class filter the collection of
/// and use only those which implement
/// .
- ///
+ ///
/// To create a custom formatter that can be used by , derive from
/// or implement .
///
diff --git a/src/Microsoft.AspNet.Mvc.Core/Formatters/IOutputFormatter.cs b/src/Microsoft.AspNet.Mvc.Core/Formatters/IOutputFormatter.cs
index b6a8892d43..a3b40c5d4a 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Formatters/IOutputFormatter.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Formatters/IOutputFormatter.cs
@@ -19,28 +19,28 @@ namespace Microsoft.AspNet.Mvc
public interface IOutputFormatter
{
///
- /// Gets a filtered list of content types which are supported by this formatter
+ /// Gets a filtered list of content types which are supported by this formatter
/// for the and .
///
/// The declared type for which the supported content types are desired.
/// The runtime type for which the supported content types are desired.
///
- /// The content type for which the supported content types are desired, or null if any content
+ /// The content type for which the supported content types are desired, or null if any content
/// type can be used.
///
/// Content types which are supported by this formatter.
///
/// If the value of is null , then the formatter should return a list
- /// of all content types that it can produce for the given data type. This may occur during content
+ /// of all content types that it can produce for the given data type. This may occur during content
/// negotiation when the HTTP Accept header is not specified, or when no match for the value in the Accept
/// header can be found.
- ///
+ ///
/// If the value of is not null , then the formatter should return
/// a list of all content types that it can produce which match the given data type and content type.
///
IReadOnlyList GetSupportedContentTypes(
- Type declaredType,
- Type runtimeType,
+ Type declaredType,
+ Type runtimeType,
MediaTypeHeaderValue contentType);
///
@@ -49,7 +49,7 @@ namespace Microsoft.AspNet.Mvc
///
/// The formatter context associated with the call.
/// The desired contentType on the response.
- /// True if this supports the passed in
+ /// True if this supports the passed in
/// and is able to serialize the object
/// represent by 's Object property.
/// False otherwise.
diff --git a/src/Microsoft.AspNet.Mvc.Core/Formatters/JsonInputFormatter.cs b/src/Microsoft.AspNet.Mvc.Core/Formatters/JsonInputFormatter.cs
index b2c4744aed..5e7c3f1828 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Formatters/JsonInputFormatter.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Formatters/JsonInputFormatter.cs
@@ -66,7 +66,7 @@ namespace Microsoft.AspNet.Mvc
}
///
- /// Gets or sets if deserialization errors are captured. When set, these errors appear in
+ /// Gets or sets if deserialization errors are captured. When set, these errors appear in
/// the instance of .
///
public bool CaptureDeserilizationErrors { get; set; }
@@ -150,7 +150,7 @@ namespace Microsoft.AspNet.Mvc
var exception = e.ErrorContext.Error;
context.ActionContext.ModelState.TryAddModelError(e.ErrorContext.Path, e.ErrorContext.Error);
// Error must always be marked as handled
- // Failure to do so can cause the exception to be rethrown at every recursive level and
+ // Failure to do so can cause the exception to be rethrown at every recursive level and
// overflow the stack for x64 CLR processes
e.ErrorContext.Handled = true;
};
diff --git a/src/Microsoft.AspNet.Mvc.Core/Formatters/JsonOutputFormatter.cs b/src/Microsoft.AspNet.Mvc.Core/Formatters/JsonOutputFormatter.cs
index 55dc17c7e2..6880ab9193 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Formatters/JsonOutputFormatter.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Formatters/JsonOutputFormatter.cs
@@ -12,7 +12,7 @@ namespace Microsoft.AspNet.Mvc
public class JsonOutputFormatter : OutputFormatter, IJsonOutputFormatter
{
private JsonSerializerSettings _serializerSettings;
-
+
public JsonOutputFormatter()
{
SupportedEncodings.Add(Encodings.UTF8EncodingWithoutBOM);
@@ -22,7 +22,7 @@ namespace Microsoft.AspNet.Mvc
_serializerSettings = new JsonSerializerSettings();
}
-
+
///
/// Gets or sets the used to configure the .
///
diff --git a/src/Microsoft.AspNet.Mvc.Core/Formatters/MediaTypeWithQualityHeaderValueComparer.cs b/src/Microsoft.AspNet.Mvc.Core/Formatters/MediaTypeWithQualityHeaderValueComparer.cs
index 047ab24b14..aaf43e358a 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Formatters/MediaTypeWithQualityHeaderValueComparer.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Formatters/MediaTypeWithQualityHeaderValueComparer.cs
@@ -13,7 +13,7 @@ namespace Microsoft.AspNet.Mvc
///
public class MediaTypeWithQualityHeaderValueComparer : IComparer
{
- private static readonly MediaTypeWithQualityHeaderValueComparer _mediaTypeComparer =
+ private static readonly MediaTypeWithQualityHeaderValueComparer _mediaTypeComparer =
new MediaTypeWithQualityHeaderValueComparer();
private MediaTypeWithQualityHeaderValueComparer()
diff --git a/src/Microsoft.AspNet.Mvc.Core/Formatters/OutputFormatter.cs b/src/Microsoft.AspNet.Mvc.Core/Formatters/OutputFormatter.cs
index 1ec9c9de19..357a002296 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Formatters/OutputFormatter.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Formatters/OutputFormatter.cs
@@ -133,8 +133,8 @@ namespace Microsoft.AspNet.Mvc
MediaTypeHeaderValue mediaType = null;
if (contentType == null)
{
- // If the desired content type is set to null, the current formatter is free to choose the
- // response media type.
+ // If the desired content type is set to null, the current formatter is free to choose the
+ // response media type.
mediaType = SupportedMediaTypes.FirstOrDefault();
}
else
@@ -185,7 +185,7 @@ namespace Microsoft.AspNet.Mvc
context.SelectedEncoding = selectedEncoding;
- // Override the content type value even if one already existed.
+ // Override the content type value even if one already existed.
selectedMediaType.Charset = selectedEncoding.WebName;
context.SelectedContentType = context.SelectedContentType ?? selectedMediaType;
diff --git a/src/Microsoft.AspNet.Mvc.Core/Formatters/OutputFormatterContext.cs b/src/Microsoft.AspNet.Mvc.Core/Formatters/OutputFormatterContext.cs
index 7ee3509a78..763cf06ce8 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Formatters/OutputFormatterContext.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Formatters/OutputFormatterContext.cs
@@ -8,28 +8,28 @@ using Microsoft.AspNet.Mvc.HeaderValueAbstractions;
namespace Microsoft.AspNet.Mvc
{
///
- /// Represents information used by a formatter for participating in
- /// output content negotiation and in writing out the response.
+ /// Represents information used by a formatter for participating in
+ /// output content negotiation and in writing out the response.
///
public class OutputFormatterContext
{
///
- /// The return value of the action method.
+ /// The return value of the action method.
///
public object Object { get; set; }
///
- /// The declared return type of the action.
+ /// The declared return type of the action.
///
public Type DeclaredType { get; set; }
///
- /// Action context associated with the current call.
+ /// Action context associated with the current call.
///
public ActionContext ActionContext { get; set; }
///
- /// The encoding which is chosen by the selected formatter.
+ /// The encoding which is chosen by the selected formatter.
///
public Encoding SelectedEncoding { get; set; }
diff --git a/src/Microsoft.AspNet.Mvc.Core/Formatters/StringWithQualityHeaderValueComparer.cs b/src/Microsoft.AspNet.Mvc.Core/Formatters/StringWithQualityHeaderValueComparer.cs
index f1f9365c7f..f628aff6a2 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Formatters/StringWithQualityHeaderValueComparer.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Formatters/StringWithQualityHeaderValueComparer.cs
@@ -9,9 +9,9 @@ namespace Microsoft.AspNet.Mvc
{
///
/// Implementation of that can compare content negotiation header fields
- /// based on their quality values (a.k.a q-values). This applies to values used in accept-charset,
- /// accept-encoding, accept-language and related header fields with similar syntax rules. See
- /// for a comparer for media type
+ /// based on their quality values (a.k.a q-values). This applies to values used in accept-charset,
+ /// accept-encoding, accept-language and related header fields with similar syntax rules. See
+ /// for a comparer for media type
/// q-values.
///
internal class StringWithQualityHeaderValueComparer : IComparer
@@ -29,7 +29,7 @@ namespace Microsoft.AspNet.Mvc
}
///
- /// Compares two based on their quality value
+ /// Compares two based on their quality value
/// (a.k.a their "q-value").
/// Values with identical q-values are considered equal (i.e the result is 0) with the exception of wild-card
/// values (i.e. a value of "*") which are considered less than non-wild-card values. This allows to sort
diff --git a/src/Microsoft.AspNet.Mvc.Core/Formatters/TextPlainFormatter.cs b/src/Microsoft.AspNet.Mvc.Core/Formatters/TextPlainFormatter.cs
index 59eae6273a..9570a0ed2b 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Formatters/TextPlainFormatter.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Formatters/TextPlainFormatter.cs
@@ -26,7 +26,7 @@ namespace Microsoft.AspNet.Mvc
public override bool CanWriteResult(OutputFormatterContext context, MediaTypeHeaderValue contentType)
{
- // Ignore the passed in content type, if the object is string
+ // Ignore the passed in content type, if the object is string
// always return it as a text/plain format.
if (context.DeclaredType == typeof(string))
{
diff --git a/src/Microsoft.AspNet.Mvc.Core/IUrlHelper.cs b/src/Microsoft.AspNet.Mvc.Core/IUrlHelper.cs
index 98cb2e4d0e..423adf99f9 100644
--- a/src/Microsoft.AspNet.Mvc.Core/IUrlHelper.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/IUrlHelper.cs
@@ -9,7 +9,7 @@ namespace Microsoft.AspNet.Mvc
public interface IUrlHelper
{
///
- /// Generates a fully qualified or absolute URL for an action method by using the specified action name,
+ /// Generates a fully qualified or absolute URL for an action method by using the specified action name,
/// controller name, route values, protocol to use, host name and fragment.
///
/// The name of the action method.
@@ -25,13 +25,13 @@ namespace Microsoft.AspNet.Mvc
/// Converts a virtual (relative) path to an application absolute path.
///
///
- /// If the specified content path does not start with the tilde (~) character,
+ /// If the specified content path does not start with the tilde (~) character,
/// this method returns unchanged.
///
/// The virtual path of the content.
/// The application absolute path.
string Content(string contentPath);
-
+
///
/// Returns a value that indicates whether the URL is local.
///
@@ -40,7 +40,7 @@ namespace Microsoft.AspNet.Mvc
bool IsLocalUrl(string url);
///
- /// Generates a fully qualified or absolute URL for the specified route values by
+ /// Generates a fully qualified or absolute URL for the specified route values by
/// using the specified route name, protocol to use, host name and fragment.
///
/// The name of the route that is used to generate URL.
diff --git a/src/Microsoft.AspNet.Mvc.Core/Internal/DecisionTree/DecisionTreeBuilder.cs b/src/Microsoft.AspNet.Mvc.Core/Internal/DecisionTree/DecisionTreeBuilder.cs
index 9eb1c01442..ec297b3946 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Internal/DecisionTree/DecisionTreeBuilder.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Internal/DecisionTree/DecisionTreeBuilder.cs
@@ -7,9 +7,9 @@ using System.Linq;
namespace Microsoft.AspNet.Mvc.Internal.DecisionTree
{
- // This code generates a minimal tree of decision criteria that map known categorical data
- // (key-value-pairs) to a set of inputs. Action Selection is the best example of how this
- // can be used, so the comments here will describe the process from the point-of-view,
+ // This code generates a minimal tree of decision criteria that map known categorical data
+ // (key-value-pairs) to a set of inputs. Action Selection is the best example of how this
+ // can be used, so the comments here will describe the process from the point-of-view,
// though the decision tree is generally applicable to like-problems.
//
// Care has been taken here to keep the performance of building the data-structure at a
@@ -34,7 +34,7 @@ namespace Microsoft.AspNet.Mvc.Internal.DecisionTree
//
// The generated tree looks like this (json-like-notation):
//
- // {
+ // {
// action : {
// "AddUser" : {
// controller : {
@@ -97,7 +97,7 @@ namespace Microsoft.AspNet.Mvc.Internal.DecisionTree
DecisionCriterionValueEqualityComparer comparer,
IList> items)
{
- // The extreme use of generics here is intended to reduce the number of intermediate
+ // The extreme use of generics here is intended to reduce the number of intermediate
// allocations of wrapper classes. Performance testing found that building these trees allocates
// significant memory that we can avoid and that it has a real impact on startup.
var criteria = new Dictionary(StringComparer.OrdinalIgnoreCase);
@@ -221,7 +221,7 @@ namespace Microsoft.AspNet.Mvc.Internal.DecisionTree
public HashSet> MatchedItems { get; private set; }
}
-
+
// Subclass just to give a logical name to a mess of generics
private class Criterion : Dictionary>>
{
diff --git a/src/Microsoft.AspNet.Mvc.Core/Internal/Routing/LinkGenerationDecisionTree.cs b/src/Microsoft.AspNet.Mvc.Core/Internal/Routing/LinkGenerationDecisionTree.cs
index d52cfdaa35..90a2390a44 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Internal/Routing/LinkGenerationDecisionTree.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Internal/Routing/LinkGenerationDecisionTree.cs
@@ -30,7 +30,7 @@ namespace Microsoft.AspNet.Mvc.Internal.Routing
}
// We need to recursively walk the decision tree based on the provided route data
- // (context.Values + context.AmbientValues) to find all entries that match. This process is
+ // (context.Values + context.AmbientValues) to find all entries that match. This process is
// virtually identical to action selection.
//
// Each entry has a collection of 'required link values' that must be satisfied. These are
@@ -125,7 +125,7 @@ namespace Microsoft.AspNet.Mvc.Internal.Routing
private class AttributeRouteLinkGenerationEntryComparer : IComparer
{
- public static readonly AttributeRouteLinkGenerationEntryComparer Instance =
+ public static readonly AttributeRouteLinkGenerationEntryComparer Instance =
new AttributeRouteLinkGenerationEntryComparer();
public int Compare(AttributeRouteLinkGenerationEntry x, AttributeRouteLinkGenerationEntry y)
diff --git a/src/Microsoft.AspNet.Mvc.Core/KnownRouteValueConstraint.cs b/src/Microsoft.AspNet.Mvc.Core/KnownRouteValueConstraint.cs
index 4e9bfd8d7e..8d435f5b3d 100644
--- a/src/Microsoft.AspNet.Mvc.Core/KnownRouteValueConstraint.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/KnownRouteValueConstraint.cs
@@ -29,7 +29,7 @@ namespace Microsoft.AspNet.Mvc
if (valueAsString != null)
{
var allValues = GetAndCacheAllMatchingValues(routeKey, httpContext);
- var match = allValues.Any(existingRouteValue =>
+ var match = allValues.Any(existingRouteValue =>
existingRouteValue.Equals(
valueAsString,
StringComparison.OrdinalIgnoreCase));
diff --git a/src/Microsoft.AspNet.Mvc.Core/Logging/LogFormatter.cs b/src/Microsoft.AspNet.Mvc.Core/Logging/LogFormatter.cs
index 064c164853..e9d1e7d0a1 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Logging/LogFormatter.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Logging/LogFormatter.cs
@@ -9,9 +9,9 @@ namespace Microsoft.AspNet.Mvc.Logging
{
///
/// A formatter for use with .
///
public static string Formatter(object o, Exception e)
diff --git a/src/Microsoft.AspNet.Mvc.Core/ModelBinders/BodyModelBinder.cs b/src/Microsoft.AspNet.Mvc.Core/ModelBinders/BodyModelBinder.cs
index b7dc556819..5142ec5d6c 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ModelBinders/BodyModelBinder.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ModelBinders/BodyModelBinder.cs
@@ -9,7 +9,7 @@ using Microsoft.Framework.DependencyInjection;
namespace Microsoft.AspNet.Mvc
{
///
- /// Represents a model binder which understands and uses
+ /// Represents a model binder which understands and uses
/// InputFomatters to bind the model to request's body.
///
public class BodyModelBinder : MetadataAwareBinder
@@ -31,7 +31,7 @@ namespace Microsoft.AspNet.Mvc
}
protected override async Task BindAsync(
- ModelBindingContext bindingContext,
+ ModelBindingContext bindingContext,
IFormatterBinderMetadata metadata)
{
var formatterContext = new InputFormatterContext(_actionContext, bindingContext.ModelType);
diff --git a/src/Microsoft.AspNet.Mvc.Core/MvcRouteHandler.cs b/src/Microsoft.AspNet.Mvc.Core/MvcRouteHandler.cs
index f4af06e5d5..33d911f67d 100644
--- a/src/Microsoft.AspNet.Mvc.Core/MvcRouteHandler.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/MvcRouteHandler.cs
@@ -108,7 +108,7 @@ namespace Microsoft.AspNet.Mvc
Resources.FormatActionInvokerFactory_CouldNotCreateInvoker(
actionDescriptor.DisplayName));
- // Add tracing/logging (what do we think of this pattern of
+ // Add tracing/logging (what do we think of this pattern of
// tacking on extra data on the exception?)
ex.Data.Add("AD", actionDescriptor);
throw ex;
diff --git a/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/DefaultModelBinderProvider.cs b/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/DefaultModelBinderProvider.cs
index 8a66b826ab..d1b80fe6ab 100644
--- a/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/DefaultModelBinderProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/DefaultModelBinderProvider.cs
@@ -17,7 +17,7 @@ namespace Microsoft.AspNet.Mvc.OptionDescriptors
///
/// An accessor to the configured for this application.
/// An instance used to instantiate types.
- /// A instance that retrieves services from the
+ /// A instance that retrieves services from the
/// service collection.
public DefaultModelBindersProvider(
IOptions optionsAccessor,
diff --git a/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/DefaultModelValidatorProviderProvider.cs b/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/DefaultModelValidatorProviderProvider.cs
index 3c74d7f295..d4322a67d8 100644
--- a/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/DefaultModelValidatorProviderProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/DefaultModelValidatorProviderProvider.cs
@@ -18,7 +18,7 @@ namespace Microsoft.AspNet.Mvc.OptionDescriptors
///
/// An accessor to the configured for this application.
/// An instance used to instantiate types.
- /// A instance that retrieves services from the
+ /// A instance that retrieves services from the
/// service collection.
public DefaultModelValidatorProviderProvider(
IOptions optionsAccessor,
diff --git a/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/DefaultValueProviderFactoryProvider.cs b/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/DefaultValueProviderFactoryProvider.cs
index 55023402bb..25eacc0f9e 100644
--- a/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/DefaultValueProviderFactoryProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/DefaultValueProviderFactoryProvider.cs
@@ -10,7 +10,7 @@ using Microsoft.Framework.OptionsModel;
namespace Microsoft.AspNet.Mvc.OptionDescriptors
{
///
- public class DefaultValueProviderFactoryProvider :
+ public class DefaultValueProviderFactoryProvider :
OptionDescriptorBasedProvider, IValueProviderFactoryProvider
{
///
@@ -18,7 +18,7 @@ namespace Microsoft.AspNet.Mvc.OptionDescriptors
///
/// An accessor to the configured for this application.
/// An instance used to instantiate types.
- /// A instance that retrieves services from the
+ /// A instance that retrieves services from the
/// service collection.
public DefaultValueProviderFactoryProvider(
IOptions optionsAccessor,
diff --git a/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/DefaultViewEngineProvider.cs b/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/DefaultViewEngineProvider.cs
index 593ca579cb..a079d75891 100644
--- a/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/DefaultViewEngineProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/DefaultViewEngineProvider.cs
@@ -17,7 +17,7 @@ namespace Microsoft.AspNet.Mvc.OptionDescriptors
///
/// An accessor to the configured for this application.
/// An instance used to instantiate types.
- /// A instance that retrieves services from the
+ /// A instance that retrieves services from the
/// service collection.
public DefaultViewEngineProvider(
IOptions optionsAccessor,
diff --git a/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/ModelValidatorProviderDescriptorExtensions.cs b/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/ModelValidatorProviderDescriptorExtensions.cs
index f09874263a..e02025edbe 100644
--- a/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/ModelValidatorProviderDescriptorExtensions.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/ModelValidatorProviderDescriptorExtensions.cs
@@ -33,7 +33,7 @@ namespace Microsoft.AspNet.Mvc
/// the specified .
///
/// A list of .
- /// The zero-based index at which
+ /// The zero-based index at which
/// should be inserted.
/// Type representing an
/// A representing the inserted instance.
@@ -72,7 +72,7 @@ namespace Microsoft.AspNet.Mvc
/// .
///
/// A list of .
- /// The zero-based index at which
+ /// The zero-based index at which
/// should be inserted.
/// An instance.
/// A representing the added instance.
diff --git a/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/OptionDescriptorBasedProvider.cs b/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/OptionDescriptorBasedProvider.cs
index 984763521d..063188441f 100644
--- a/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/OptionDescriptorBasedProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/OptionDescriptorBasedProvider.cs
@@ -8,7 +8,7 @@ using Microsoft.Framework.DependencyInjection;
namespace Microsoft.AspNet.Mvc.OptionDescriptors
{
///
- /// Provides a default implementation for instantiating options from a sequence of
+ /// Provides a default implementation for instantiating options from a sequence of
/// .
///
/// The type of the option.
diff --git a/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/ValueProviderFactoryDescriptor.cs b/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/ValueProviderFactoryDescriptor.cs
index f8b3ec59a7..1473ccf116 100644
--- a/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/ValueProviderFactoryDescriptor.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/OptionDescriptors/ValueProviderFactoryDescriptor.cs
@@ -23,7 +23,7 @@ namespace Microsoft.AspNet.Mvc.OptionDescriptors
///
/// Creates a new instance of using the specified type.
///
- /// An instance of
+ /// An instance of
/// that the descriptor represents.
public ValueProviderFactoryDescriptor([NotNull] IValueProviderFactory valueProviderFactory)
: base(valueProviderFactory)
diff --git a/src/Microsoft.AspNet.Mvc.Core/ParameterBinding/ModelBindingHelper.cs b/src/Microsoft.AspNet.Mvc.Core/ParameterBinding/ModelBindingHelper.cs
index 7ff39f60c1..76d3e0645d 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ParameterBinding/ModelBindingHelper.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ParameterBinding/ModelBindingHelper.cs
@@ -11,14 +11,14 @@ namespace Microsoft.AspNet.Mvc
public static class ModelBindingHelper
{
///
- /// Updates the specified model instance using the specified binder and value provider and
+ /// Updates the specified model instance using the specified binder and value provider and
/// executes validation using the specified sequence of validator providers.
///
/// The type of the model object.
/// The model instance to update.
/// The prefix to use when looking up values in the value provider.
/// The context for the current executing request.
- /// The ModelStateDictionary used for maintaining state and
+ /// The ModelStateDictionary used for maintaining state and
/// results of model-binding validation.
/// The provider used for reading metadata for the model type.
/// The model binder used for binding.
diff --git a/src/Microsoft.AspNet.Mvc.Core/Rendering/Expressions/ExpressionMetadataProvider.cs b/src/Microsoft.AspNet.Mvc.Core/Rendering/Expressions/ExpressionMetadataProvider.cs
index 4d7957cbc7..7e05a2094d 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Rendering/Expressions/ExpressionMetadataProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Rendering/Expressions/ExpressionMetadataProvider.cs
@@ -126,10 +126,10 @@ namespace Microsoft.AspNet.Mvc.Rendering.Expressions
}
}
- return GetMetadataFromProvider(modelAccessor,
- modelType ?? typeof(string),
- propertyName,
- container,
+ return GetMetadataFromProvider(modelAccessor,
+ modelType ?? typeof(string),
+ propertyName,
+ container,
containerType,
metadataProvider);
}
@@ -156,11 +156,11 @@ namespace Microsoft.AspNet.Mvc.Rendering.Expressions
// An IModelMetadataProvider is not required unless this method is called. Therefore other methods in this
// class lack [NotNull] attributes for their corresponding parameter.
- private static ModelMetadata GetMetadataFromProvider(Func modelAccessor,
+ private static ModelMetadata GetMetadataFromProvider(Func modelAccessor,
Type modelType,
- string propertyName,
- object container,
- Type containerType,
+ string propertyName,
+ object container,
+ Type containerType,
[NotNull] IModelMetadataProvider metadataProvider)
{
if (containerType != null && !string.IsNullOrEmpty(propertyName))
diff --git a/src/Microsoft.AspNet.Mvc.Core/Rendering/Html/TagBuilder.cs b/src/Microsoft.AspNet.Mvc.Core/Rendering/Html/TagBuilder.cs
index 330e1fb297..e7622b7ad7 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Rendering/Html/TagBuilder.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Rendering/Html/TagBuilder.cs
@@ -110,7 +110,7 @@ namespace Microsoft.AspNet.Mvc.Rendering
foreach (var attribute in Attributes)
{
var key = attribute.Key;
- if (string.Equals(key, "id", StringComparison.OrdinalIgnoreCase) &&
+ if (string.Equals(key, "id", StringComparison.OrdinalIgnoreCase) &&
string.IsNullOrEmpty(attribute.Value))
{
continue;
diff --git a/src/Microsoft.AspNet.Mvc.Core/Rendering/MvcOptions.cs b/src/Microsoft.AspNet.Mvc.Core/Rendering/MvcOptions.cs
index e282c86e8f..34f355d499 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Rendering/MvcOptions.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Rendering/MvcOptions.cs
@@ -53,7 +53,7 @@ namespace Microsoft.AspNet.Mvc
}
///
- /// Gets a list of which are used to construct filters that
+ /// Gets a list of which are used to construct filters that
/// apply to all actions.
///
public ICollection Filters { get; private set; }
diff --git a/src/Microsoft.AspNet.Mvc.Core/Rendering/UnobtrusiveValidationAttributesGenerator.cs b/src/Microsoft.AspNet.Mvc.Core/Rendering/UnobtrusiveValidationAttributesGenerator.cs
index 6f9234e7f1..2e13c8f385 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Rendering/UnobtrusiveValidationAttributesGenerator.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Rendering/UnobtrusiveValidationAttributesGenerator.cs
@@ -50,7 +50,7 @@ namespace Microsoft.AspNet.Mvc.Rendering
if (string.IsNullOrEmpty(rule.ValidationType))
{
throw new ArgumentException(
- Resources.FormatUnobtrusiveJavascript_ValidationTypeCannotBeEmpty(rule.GetType().FullName),
+ Resources.FormatUnobtrusiveJavascript_ValidationTypeCannotBeEmpty(rule.GetType().FullName),
"rule");
}
diff --git a/src/Microsoft.AspNet.Mvc.Core/Resources.resx b/src/Microsoft.AspNet.Mvc.Core/Resources.resx
index ffc734af90..5e00916e47 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Resources.resx
+++ b/src/Microsoft.AspNet.Mvc.Core/Resources.resx
@@ -1,17 +1,17 @@
-
diff --git a/src/Microsoft.AspNet.Mvc.Core/RouteAttribute.cs b/src/Microsoft.AspNet.Mvc.Core/RouteAttribute.cs
index 5d3230f5c0..a0a1b02ccf 100644
--- a/src/Microsoft.AspNet.Mvc.Core/RouteAttribute.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/RouteAttribute.cs
@@ -7,7 +7,7 @@ using Microsoft.AspNet.Mvc.Routing;
namespace Microsoft.AspNet.Mvc
{
///
- /// Specifies an attribute route on a controller.
+ /// Specifies an attribute route on a controller.
///
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public class RouteAttribute : Attribute, IRouteTemplateProvider
diff --git a/src/Microsoft.AspNet.Mvc.Core/RouteConstraintAttribute.cs b/src/Microsoft.AspNet.Mvc.Core/RouteConstraintAttribute.cs
index f5be7295ba..99bd6dd016 100644
--- a/src/Microsoft.AspNet.Mvc.Core/RouteConstraintAttribute.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/RouteConstraintAttribute.cs
@@ -7,16 +7,16 @@ using Microsoft.AspNet.Mvc.Core;
namespace Microsoft.AspNet.Mvc
{
///
- /// An attribute which specifies a required route value for an action or controller.
- ///
+ /// An attribute which specifies a required route value for an action or controller.
+ ///
/// When placed on an action, the route data of a request must match the expectations of the route
- /// constraint in order for the action to be selected. See for
+ /// constraint in order for the action to be selected. See for
/// the expectations that must be satisfied by the route data.
- ///
+ ///
/// When placed on a controller, unless overridden by the action, the constraint applies to all
/// actions defined by the controller.
- ///
- ///
+ ///
+ ///
///
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public abstract class RouteConstraintAttribute : Attribute
@@ -26,7 +26,7 @@ namespace Microsoft.AspNet.Mvc
///
/// The route value key.
///
- /// The value. Must be
+ /// The value. Must be
/// or .
///
protected RouteConstraintAttribute(
@@ -47,7 +47,7 @@ namespace Microsoft.AspNet.Mvc
}
///
- /// Creates a new with
+ /// Creates a new with
/// set to .
///
/// The route value key.
@@ -56,8 +56,8 @@ namespace Microsoft.AspNet.Mvc
/// Set to true to negate this constraint on all actions that do not define a behavior for this route key.
///
protected RouteConstraintAttribute(
- [NotNull]string routeKey,
- [NotNull]string routeValue,
+ [NotNull]string routeKey,
+ [NotNull]string routeValue,
bool blockNonAttributedActions)
{
RouteKey = routeKey;
diff --git a/src/Microsoft.AspNet.Mvc.Core/RouteKeyHandling.cs b/src/Microsoft.AspNet.Mvc.Core/RouteKeyHandling.cs
index 6eb57cb81a..44dd6ba303 100644
--- a/src/Microsoft.AspNet.Mvc.Core/RouteKeyHandling.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/RouteKeyHandling.cs
@@ -17,7 +17,7 @@ namespace Microsoft.AspNet.Mvc
///
/// Requires that the key will be in the route values, but ignore the content.
- /// Constraints with this value are considered less important than ones with
+ /// Constraints with this value are considered less important than ones with
///
///
CatchAll,
diff --git a/src/Microsoft.AspNet.Mvc.Core/Routing/ActionSelectorDecisionTree.cs b/src/Microsoft.AspNet.Mvc.Core/Routing/ActionSelectorDecisionTree.cs
index cdfe78488c..c6353d6995 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Routing/ActionSelectorDecisionTree.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Routing/ActionSelectorDecisionTree.cs
@@ -121,7 +121,7 @@ namespace Microsoft.AspNet.Mvc.Routing
Walk(results, routeValues, branch);
}
- // If there's a fallback node we always need to process it when we have a value. We'll prioritize
+ // If there's a fallback node we always need to process it when we have a value. We'll prioritize
// non-fallback matches later in the process.
if (hasValue && criterion.Fallback != null)
{
diff --git a/src/Microsoft.AspNet.Mvc.Core/Routing/AttributeRoute.cs b/src/Microsoft.AspNet.Mvc.Core/Routing/AttributeRoute.cs
index 9332116b89..228b5faa32 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Routing/AttributeRoute.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Routing/AttributeRoute.cs
@@ -41,7 +41,7 @@ namespace Microsoft.AspNet.Mvc.Routing
_next = next;
// Order all the entries by order, then precedence, and then finally by template in order to provide
- // a stable routing and link generation order for templates with same order and precedence.
+ // a stable routing and link generation order for templates with same order and precedence.
// We use ordinal comparison for the templates because we only care about them being exactly equal and
// we don't want to make any equivalence between templates based on the culture of the machine.
@@ -182,7 +182,7 @@ namespace Microsoft.AspNet.Mvc.Routing
// So, we need to exclude from here any values that are 'required link values', but aren't
// parameters in the template.
//
- // Ex:
+ // Ex:
// template: api/Products/{action}
// required values: { id = "5", action = "Buy", Controller = "CoolProducts" }
//
@@ -261,7 +261,7 @@ namespace Microsoft.AspNet.Mvc.Routing
{
// If the required value is an 'empty' route value, then ignore ambient values.
// This handles a case where we're generating a link to an action like:
- // { area = "", controller = "Home", action = "Index" }
+ // { area = "", controller = "Home", action = "Index" }
//
// and the ambient values has a value for area.
if (value != null)
diff --git a/src/Microsoft.AspNet.Mvc.Core/Routing/AttributeRouteInfo.cs b/src/Microsoft.AspNet.Mvc.Core/Routing/AttributeRouteInfo.cs
index 22544bcb86..2cb71ba11e 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Routing/AttributeRouteInfo.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Routing/AttributeRouteInfo.cs
@@ -15,7 +15,7 @@ namespace Microsoft.AspNet.Mvc.Routing
///
/// Gets the order of the route associated with a given action. This property determines
- /// the order in which routes get executed. Routes with a lower order value are tried first. In case a route
+ /// the order in which routes get executed. Routes with a lower order value are tried first. In case a route
/// doesn't specify a value, it gets a default order of 0.
///
public int Order { get; set; }
diff --git a/src/Microsoft.AspNet.Mvc.Core/Routing/AttributeRouting.cs b/src/Microsoft.AspNet.Mvc.Core/Routing/AttributeRouting.cs
index c00a5106a9..533f4d09bc 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Routing/AttributeRouting.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Routing/AttributeRouting.cs
@@ -113,8 +113,8 @@ namespace Microsoft.AspNet.Mvc.Routing
var errors = new List();
// This keeps a cache of 'Template' objects. It's a fairly common case that multiple actions
- // will use the same route template string; thus, the `Template` object can be shared.
- //
+ // will use the same route template string; thus, the `Template` object can be shared.
+ //
// For a relatively simple route template, the `Template` object will hold about 500 bytes
// of memory, so sharing is worthwhile.
var templateCache = new Dictionary(StringComparer.OrdinalIgnoreCase);
diff --git a/src/Microsoft.AspNet.Mvc.Core/Routing/IActionSelectorDecisionTreeProvider.cs b/src/Microsoft.AspNet.Mvc.Core/Routing/IActionSelectorDecisionTreeProvider.cs
index caf5e4a351..28e021d9ef 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Routing/IActionSelectorDecisionTreeProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Routing/IActionSelectorDecisionTreeProvider.cs
@@ -4,7 +4,7 @@
namespace Microsoft.AspNet.Mvc.Routing
{
///
- /// Stores an for the current value of
+ /// Stores an for the current value of
/// .
///
public interface IActionSelectorDecisionTreeProvider
diff --git a/src/Microsoft.AspNet.Mvc.Core/Routing/RouteValueEqualityComparer.cs b/src/Microsoft.AspNet.Mvc.Core/Routing/RouteValueEqualityComparer.cs
index 44232f4d05..82f67aad11 100644
--- a/src/Microsoft.AspNet.Mvc.Core/Routing/RouteValueEqualityComparer.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/Routing/RouteValueEqualityComparer.cs
@@ -12,10 +12,10 @@ namespace Microsoft.AspNet.Mvc.Routing
/// they were route value strings.
///
///
- /// Values that are are not strings are converted to strings using
+ /// Values that are are not strings are converted to strings using
/// Convert.ToString(x, CultureInfo.InvariantCulture) . null values are converted
/// to the empty string.
- ///
+ ///
/// strings are compared using .
///
public class RouteValueEqualityComparer : IEqualityComparer
diff --git a/src/Microsoft.AspNet.Mvc.Core/UrlHelper.cs b/src/Microsoft.AspNet.Mvc.Core/UrlHelper.cs
index 15308bfb22..b5ebb491a8 100644
--- a/src/Microsoft.AspNet.Mvc.Core/UrlHelper.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/UrlHelper.cs
@@ -12,7 +12,7 @@ using Microsoft.Framework.DependencyInjection;
namespace Microsoft.AspNet.Mvc
{
///
- /// An implementation of that contains methods to
+ /// An implementation of that contains methods to
/// build URLs for ASP.NET MVC within an application.
///
public class UrlHelper : IUrlHelper
@@ -101,7 +101,7 @@ namespace Microsoft.AspNet.Mvc
}
///
- /// Generates the absolute path of the url for the specified route values by
+ /// Generates the absolute path of the url for the specified route values by
/// using the specified route name.
///
/// The name of the route that is used to generate the URL.
diff --git a/src/Microsoft.AspNet.Mvc.Core/UrlHelperExtensions.cs b/src/Microsoft.AspNet.Mvc.Core/UrlHelperExtensions.cs
index a7c74552e1..44e12ddbac 100644
--- a/src/Microsoft.AspNet.Mvc.Core/UrlHelperExtensions.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/UrlHelperExtensions.cs
@@ -73,9 +73,9 @@ namespace Microsoft.AspNet.Mvc
}
public static string RouteUrl(
- [NotNull] this IUrlHelper helper,
- string routeName,
- object values,
+ [NotNull] this IUrlHelper helper,
+ string routeName,
+ object values,
string protocol)
{
return helper.RouteUrl(routeName, values, protocol, host: null, fragment: null);
diff --git a/src/Microsoft.AspNet.Mvc.Core/ViewComponents/DefaultViewComponentInvokerProvider.cs b/src/Microsoft.AspNet.Mvc.Core/ViewComponents/DefaultViewComponentInvokerProvider.cs
index e2cc9efde4..fc63aa6d79 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ViewComponents/DefaultViewComponentInvokerProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ViewComponents/DefaultViewComponentInvokerProvider.cs
@@ -32,8 +32,8 @@ namespace Microsoft.AspNet.Mvc
context.Result = new DefaultViewComponentInvoker(
_serviceProvider,
_typeActivator,
- _viewComponentActivator,
- context.ComponentType,
+ _viewComponentActivator,
+ context.ComponentType,
context.Arguments);
callNext();
diff --git a/src/Microsoft.AspNet.Mvc.Core/ViewComponents/ViewComponentConventions.cs b/src/Microsoft.AspNet.Mvc.Core/ViewComponents/ViewComponentConventions.cs
index bb913f0b00..02177ef108 100644
--- a/src/Microsoft.AspNet.Mvc.Core/ViewComponents/ViewComponentConventions.cs
+++ b/src/Microsoft.AspNet.Mvc.Core/ViewComponents/ViewComponentConventions.cs
@@ -37,7 +37,7 @@ namespace Microsoft.AspNet.Mvc
return attribute.Name;
}
- // If the view component didn't define a name explicitly then use the namespace + the
+ // If the view component didn't define a name explicitly then use the namespace + the
// 'short name'.
var shortName = GetShortNameByConvention(componentType);
if (string.IsNullOrEmpty(componentType.Namespace))
diff --git a/src/Microsoft.AspNet.Mvc.HeaderValueAbstractions/MediaTypeHeaderValue.cs b/src/Microsoft.AspNet.Mvc.HeaderValueAbstractions/MediaTypeHeaderValue.cs
index 4a4740a320..13cc46f271 100644
--- a/src/Microsoft.AspNet.Mvc.HeaderValueAbstractions/MediaTypeHeaderValue.cs
+++ b/src/Microsoft.AspNet.Mvc.HeaderValueAbstractions/MediaTypeHeaderValue.cs
@@ -126,8 +126,8 @@ namespace Microsoft.AspNet.Mvc.HeaderValueAbstractions
///
/// Determines whether this instance is a subset of passed .
- /// If the media type and media type parameters of this media type are all present
- /// and match those of then it is a match even though
+ /// If the media type and media type parameters of this media type are all present
+ /// and match those of then it is a match even though
/// may have additional parameters.
///
/// The first media type.
@@ -163,7 +163,7 @@ namespace Microsoft.AspNet.Mvc.HeaderValueAbstractions
return false;
}
- // So far we either have a full match or a subset match. Now check that all of
+ // So far we either have a full match or a subset match. Now check that all of
// mediaType1's parameters are present and equal in mediatype2
if (!MatchParameters(Parameters, otherMediaType.Parameters))
{
diff --git a/src/Microsoft.AspNet.Mvc.HeaderValueAbstractions/Resources.resx b/src/Microsoft.AspNet.Mvc.HeaderValueAbstractions/Resources.resx
index 0f3e3bbab5..25784f4572 100644
--- a/src/Microsoft.AspNet.Mvc.HeaderValueAbstractions/Resources.resx
+++ b/src/Microsoft.AspNet.Mvc.HeaderValueAbstractions/Resources.resx
@@ -1,17 +1,17 @@
-
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/BindAttribute.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/BindAttribute.cs
index e83ff6feb0..101f683a53 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/BindAttribute.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/BindAttribute.cs
@@ -47,8 +47,8 @@ namespace Microsoft.AspNet.Mvc
// We allow a property to be bound if its both in the include list AND not in the exclude list.
// An empty include list implies all properties are allowed.
// An empty exclude list implies no properties are disallowed.
- var includeProperty = (includeProperties == null) ||
- (includeProperties.Count == 0) ||
+ var includeProperty = (includeProperties == null) ||
+ (includeProperties.Count == 0) ||
includeProperties.Contains(propertyName, StringComparer.OrdinalIgnoreCase);
var excludeProperty = (excludeProperties != null) &&
excludeProperties.Contains(propertyName, StringComparer.OrdinalIgnoreCase);
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/ByteArrayModelBinder.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/ByteArrayModelBinder.cs
index d34f32ffa3..090c624162 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/ByteArrayModelBinder.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/ByteArrayModelBinder.cs
@@ -44,7 +44,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
{
ModelBindingHelper.AddModelErrorBasedOnExceptionType(bindingContext, ex);
}
-
+
return true;
}
}
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/ComplexModelDto.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/ComplexModelDto.cs
index d72a18f192..543f6de1fa 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/ComplexModelDto.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/ComplexModelDto.cs
@@ -10,7 +10,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
// Describes a complex model, but uses a collection rather than individual properties as the data store.
public class ComplexModelDto
{
- public ComplexModelDto([NotNull] ModelMetadata modelMetadata,
+ public ComplexModelDto([NotNull] ModelMetadata modelMetadata,
[NotNull] IEnumerable propertyMetadata)
{
ModelMetadata = modelMetadata;
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/ComplexModelDtoResult.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/ComplexModelDtoResult.cs
index 94950dadd6..ac5a2d826a 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/ComplexModelDtoResult.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/ComplexModelDtoResult.cs
@@ -5,7 +5,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
{
public sealed class ComplexModelDtoResult
{
- public ComplexModelDtoResult(object model,
+ public ComplexModelDtoResult(object model,
[NotNull] ModelValidationNode validationNode)
{
Model = model;
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/CompositeModelBinder.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/CompositeModelBinder.cs
index 2ff4b30891..461a6bd581 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/CompositeModelBinder.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/CompositeModelBinder.cs
@@ -10,7 +10,7 @@ using System.Threading.Tasks;
namespace Microsoft.AspNet.Mvc.ModelBinding
{
///
- /// Represents an that delegates to one of a collection of
+ /// Represents an that delegates to one of a collection of
/// instances.
///
///
@@ -143,7 +143,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
newBindingContext.ValidationNode = oldBindingContext.ValidationNode;
}
- // look at the value providers and see if they need to be restricted.
+ // look at the value providers and see if they need to be restricted.
var metadata = oldBindingContext.ModelMetadata.BinderMetadata as IValueProviderMetadata;
if (metadata != null)
{
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/MetadataAwareBinder.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/MetadataAwareBinder.cs
index 478e9d450f..75531e3245 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/MetadataAwareBinder.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/MetadataAwareBinder.cs
@@ -30,6 +30,6 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
}
return Task.FromResult(false);
- }
+ }
}
}
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/MutableObjectModelBinder.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/MutableObjectModelBinder.cs
index 9a5a0d869b..9a1cdd91ba 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/MutableObjectModelBinder.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/MutableObjectModelBinder.cs
@@ -25,7 +25,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
var topLevelObject = bindingContext.ModelMetadata.ContainerType == null;
var isThereAnExplicitAlias = bindingContext.ModelMetadata.ModelName != null;
-
+
// The first check is necessary because if we fallback to empty prefix, we do not want to depend
// on a value provider to provide a value for empty prefix.
var containsPrefix = (bindingContext.ModelName == string.Empty && topLevelObject) ||
@@ -124,7 +124,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
protected virtual object CreateModel(ModelBindingContext bindingContext)
{
- // If the Activator throws an exception, we want to propagate it back up the call stack, since the
+ // If the Activator throws an exception, we want to propagate it back up the call stack, since the
// application developer should know that this was an invalid type to try to bind to.
return Activator.CreateInstance(bindingContext.ModelType);
}
@@ -142,8 +142,8 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
if (validationState == ModelValidationState.Unvalidated)
{
// TODO: https://github.com/aspnet/Mvc/issues/450 Revive ModelBinderConfig
- // var errorMessage = ModelBinderConfig.ValueRequiredErrorMessageProvider(e.ValidationContext,
- // modelMetadata,
+ // var errorMessage = ModelBinderConfig.ValueRequiredErrorMessageProvider(e.ValidationContext,
+ // modelMetadata,
// incomingValue);
var errorMessage = Resources.ModelBinderConfig_ValueRequired;
if (errorMessage != null)
@@ -301,7 +301,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
propertyMetadata.Model = value;
// 'Required' validators need to run first so that we can provide useful error messages if
- // the property setters throw, e.g. if we're setting entity keys to null.
+ // the property setters throw, e.g. if we're setting entity keys to null.
if (value == null)
{
var modelStateKey = dtoResult.ValidationNode.ModelStateKey;
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Internal/CollectionExtensions.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Internal/CollectionExtensions.cs
index 5b269ef75e..46362d758d 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Internal/CollectionExtensions.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Internal/CollectionExtensions.cs
@@ -10,7 +10,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Internal
public static class CollectionExtensions
{
///
- /// Convert an ICollection to an array, removing null values. Fast path for case where
+ /// Convert an ICollection to an array, removing null values. Fast path for case where
/// there are no null values.
///
public static T[] ToArrayWithoutNulls(this ICollection collection) where T : class
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/AssociatedMetadataProvider.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/AssociatedMetadataProvider.cs
index 91613f1343..3b47e89004 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/AssociatedMetadataProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/AssociatedMetadataProvider.cs
@@ -47,8 +47,8 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
}
public ModelMetadata GetMetadataForParameter(
- Func modelAccessor,
- [NotNull] MethodInfo methodInfo,
+ Func modelAccessor,
+ [NotNull] MethodInfo methodInfo,
[NotNull] string parameterName,
IBinderMetadata binderMetadata)
{
@@ -77,7 +77,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
ParameterInfo parameter,
IBinderMetadata binderMetadata)
{
- var parameterInfo =
+ var parameterInfo =
CreateParameterInfo(parameter.ParameterType,
parameter.GetCustomAttributes(),
parameterName,
@@ -120,7 +120,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
private TypeInformation GetTypeInformation(Type type, IEnumerable associatedAttributes = null)
{
- // This retrieval is implemented as a TryGetValue/TryAdd instead of a GetOrAdd
+ // This retrieval is implemented as a TryGetValue/TryAdd instead of a GetOrAdd
// to avoid the performance cost of creating instance delegates
TypeInformation typeInfo;
if (!_typeInfoCache.TryGetValue(type, out typeInfo))
@@ -176,8 +176,8 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
}
private ParameterInformation CreateParameterInfo(
- Type parameterType,
- IEnumerable attributes,
+ Type parameterType,
+ IEnumerable attributes,
string parameterName,
IBinderMetadata binderMetadata)
{
@@ -185,7 +185,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
containerType: null,
modelType: parameterType,
propertyName: parameterName);
-
+
if (binderMetadata != null)
{
metadataProtoType.BinderMetadata = binderMetadata;
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/CachedDataAnnotationsModelMetadata.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/CachedDataAnnotationsModelMetadata.cs
index c21d4fd24a..4736a5b4be 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/CachedDataAnnotationsModelMetadata.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/CachedDataAnnotationsModelMetadata.cs
@@ -16,21 +16,21 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
private static readonly string HtmlName = DataType.Html.ToString();
private bool _isEditFormatStringFromCache;
- public CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata prototype,
+ public CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata prototype,
Func modelAccessor)
: base(prototype, modelAccessor)
{
}
- public CachedDataAnnotationsModelMetadata(DataAnnotationsModelMetadataProvider provider,
- Type containerType,
- Type modelType,
- string propertyName,
+ public CachedDataAnnotationsModelMetadata(DataAnnotationsModelMetadataProvider provider,
+ Type containerType,
+ Type modelType,
+ string propertyName,
IEnumerable attributes)
- : base(provider,
- containerType,
- modelType,
- propertyName,
+ : base(provider,
+ containerType,
+ modelType,
+ propertyName,
new CachedDataAnnotationsMetadataAttributes(attributes))
{
BinderMetadata = attributes.OfType().FirstOrDefault();
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/DataAnnotationsModelMetadataProvider.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/DataAnnotationsModelMetadataProvider.cs
index a1a1fbdb5e..c92d29ece5 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/DataAnnotationsModelMetadataProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/DataAnnotationsModelMetadataProvider.cs
@@ -9,16 +9,16 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
public class DataAnnotationsModelMetadataProvider : AssociatedMetadataProvider
{
protected override CachedDataAnnotationsModelMetadata CreateMetadataPrototype(
- IEnumerable attributes,
- Type containerType,
- Type modelType,
+ IEnumerable attributes,
+ Type containerType,
+ Type modelType,
string propertyName)
{
return new CachedDataAnnotationsModelMetadata(this, containerType, modelType, propertyName, attributes);
}
protected override CachedDataAnnotationsModelMetadata CreateMetadataFromPrototype(
- CachedDataAnnotationsModelMetadata prototype,
+ CachedDataAnnotationsModelMetadata prototype,
Func modelAccessor)
{
return new CachedDataAnnotationsModelMetadata(prototype, modelAccessor);
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/ModelMetadata.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/ModelMetadata.cs
index f8e88371dc..b6174ea7ee 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/ModelMetadata.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/ModelMetadata.cs
@@ -68,7 +68,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
public IBinderMetadata BinderMetadata { get; set; }
///
- /// A reference to the model's container .
+ /// A reference to the model's container .
/// Will be non-null if the model represents a property.
///
public object Container { get; set; }
@@ -330,7 +330,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
string propertyName)
{
// If metadata is for a property then containerType != null && propertyName != null
- // If metadata is for a type then containerType == null && propertyName == null,
+ // If metadata is for a type then containerType == null && propertyName == null,
// so we have to use modelType for the cache key.
return new EfficientTypePropertyKey(containerType ?? modelType, propertyName);
}
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/ModelStateDictionary.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/ModelStateDictionary.cs
index 733bd7f16d..7056c95b22 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/ModelStateDictionary.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/ModelStateDictionary.cs
@@ -149,7 +149,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
///
/// The key of the to add errors to.
/// The to add.
- /// True if the error was added, false if the dictionary has already recorded
+ /// True if the error was added, false if the dictionary has already recorded
/// at least number of errors.
///
/// This method only allows adding up to - 1. nt
@@ -186,7 +186,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
///
/// The key of the to add errors to.
/// The error message to add.
- /// True if the error was added, false if the dictionary has already recorded
+ /// True if the error was added, false if the dictionary has already recorded
/// at least number of errors.
///
/// This method only allows adding up to - 1. nt
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Resources.resx b/src/Microsoft.AspNet.Mvc.ModelBinding/Resources.resx
index f5e2484512..f8dbd03c98 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Resources.resx
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Resources.resx
@@ -1,17 +1,17 @@
-
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/AssociatedValidatorProvider.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/AssociatedValidatorProvider.cs
index d86ce02d09..38f2aeb4a9 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/AssociatedValidatorProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/AssociatedValidatorProvider.cs
@@ -19,7 +19,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
return GetValidatorsForType(metadata);
}
- protected abstract IEnumerable GetValidators(ModelMetadata metadata,
+ protected abstract IEnumerable GetValidators(ModelMetadata metadata,
IEnumerable attributes);
private IEnumerable GetValidatorsForProperty(ModelMetadata metadata)
@@ -28,12 +28,12 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
var bindingFlags = BindingFlags.Public | BindingFlags.Instance | BindingFlags.IgnoreCase;
var property = metadata.ContainerType
.GetProperty(propertyName, bindingFlags);
-
+
if (property == null)
{
throw new ArgumentException(
Resources.FormatCommon_PropertyNotFound(
- metadata.ContainerType.FullName,
+ metadata.ContainerType.FullName,
metadata.PropertyName),
"metadata");
}
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/DataAnnotationsModelValidator.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/DataAnnotationsModelValidator.cs
index 40bd110474..ab4a8751e1 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/DataAnnotationsModelValidator.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/DataAnnotationsModelValidator.cs
@@ -42,7 +42,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
// the returned MemberNames if specified (e.g. person.Address.FirstName). For property validation, the
// ModelKey can be constructed using the ModelMetadata and we should ignore MemberName (we don't want
// (person.Name.Name). However the invoking validator does not have a way to distinguish between these
- // two cases. Consequently we'll only set MemberName if this validation returns a MemberName that is
+ // two cases. Consequently we'll only set MemberName if this validation returns a MemberName that is
// different from the property being validated.
var errorMemberName = result.MemberNames.FirstOrDefault();
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/DataTypeAttributeAdapter.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/DataTypeAttributeAdapter.cs
index a23a0b1e60..6233ed3579 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/DataTypeAttributeAdapter.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/DataTypeAttributeAdapter.cs
@@ -8,7 +8,7 @@ using System.ComponentModel.DataAnnotations;
namespace Microsoft.AspNet.Mvc.ModelBinding
{
///
- /// A validation adapter that is used to map 's to a single client side validation
+ /// A validation adapter that is used to map 's to a single client side validation
/// rule.
///
public class DataTypeAttributeAdapter : DataAnnotationsModelValidator
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/DefaultBodyModelValidator.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/DefaultBodyModelValidator.cs
index c0e576a23e..d9ae190cab 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/DefaultBodyModelValidator.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/DefaultBodyModelValidator.cs
@@ -12,7 +12,7 @@ using Microsoft.AspNet.Mvc.ModelBinding.Internal;
namespace Microsoft.AspNet.Mvc.ModelBinding
{
///
- /// Recursively validate an object.
+ /// Recursively validate an object.
///
public class DefaultBodyModelValidator : IBodyModelValidator
{
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/IExcludeTypeValidationFilter.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/IExcludeTypeValidationFilter.cs
index 31b99d184b..f5caa83b8b 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/IExcludeTypeValidationFilter.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/IExcludeTypeValidationFilter.cs
@@ -15,6 +15,6 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
///
/// The for which the check is to be performed.
/// True if the type is to be excluded. False otherwise.
- bool IsTypeExcluded([NotNull] Type type);
+ bool IsTypeExcluded([NotNull] Type type);
}
}
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelClientValidationEqualToRule.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelClientValidationEqualToRule.cs
index e0eee8f522..8a1d1f9bbc 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelClientValidationEqualToRule.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelClientValidationEqualToRule.cs
@@ -11,7 +11,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
private const string EqualToValidationType = "equalto";
private const string EqualToValidationParameter = "other";
- public ModelClientValidationEqualToRule([NotNull] string errorMessage,
+ public ModelClientValidationEqualToRule([NotNull] string errorMessage,
[NotNull] object other)
: base(EqualToValidationType, errorMessage)
{
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelClientValidationRangeRule.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelClientValidationRangeRule.cs
index 2471462d25..517fc2a86f 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelClientValidationRangeRule.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelClientValidationRangeRule.cs
@@ -9,8 +9,8 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
private const string MinValidationParameter = "min";
private const string MaxValidationParameter = "max";
- public ModelClientValidationRangeRule([NotNull] string errorMessage,
- [NotNull] object minValue,
+ public ModelClientValidationRangeRule([NotNull] string errorMessage,
+ [NotNull] object minValue,
[NotNull] object maxValue)
: base(RangeValidationType, errorMessage)
{
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelClientValidationRequiredRule.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelClientValidationRequiredRule.cs
index 8d211e131b..8cc49d877e 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelClientValidationRequiredRule.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelClientValidationRequiredRule.cs
@@ -7,7 +7,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
{
private const string RequiredValidationType = "required";
- public ModelClientValidationRequiredRule(string errorMessage) :
+ public ModelClientValidationRequiredRule(string errorMessage) :
base(RequiredValidationType, errorMessage)
{
}
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelValidatedEventArgs.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelValidatedEventArgs.cs
index 31a600891a..cddc32b7d8 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelValidatedEventArgs.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelValidatedEventArgs.cs
@@ -7,7 +7,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
{
public sealed class ModelValidatedEventArgs : EventArgs
{
- public ModelValidatedEventArgs([NotNull] ModelValidationContext validationContext,
+ public ModelValidatedEventArgs([NotNull] ModelValidationContext validationContext,
[NotNull] ModelValidationNode parentNode)
{
ValidationContext = validationContext;
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelValidatingEventArgs.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelValidatingEventArgs.cs
index 76c859e854..59ae077fff 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelValidatingEventArgs.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelValidatingEventArgs.cs
@@ -7,7 +7,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
{
public sealed class ModelValidatingEventArgs : CancelEventArgs
{
- public ModelValidatingEventArgs([NotNull] ModelValidationContext validationContext,
+ public ModelValidatingEventArgs([NotNull] ModelValidationContext validationContext,
[NotNull] ModelValidationNode parentNode)
{
ValidationContext = validationContext;
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelValidationNode.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelValidationNode.cs
index d81e209b20..74009f8d87 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelValidationNode.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Validation/ModelValidationNode.cs
@@ -187,8 +187,8 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
return;
}
- // If the Model at the current node is null and there is no parent, we cannot validate, and the
- // DataAnnotationsModelValidator will throw. So we intercept here to provide a catch-all value-required
+ // If the Model at the current node is null and there is no parent, we cannot validate, and the
+ // DataAnnotationsModelValidator will throw. So we intercept here to provide a catch-all value-required
// validation error
var modelStateKey = ModelBindingHelper.CreatePropertyModelName(ModelStateKey,
ModelMetadata.GetDisplayName());
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/DictionaryBasedValueProvider.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/DictionaryBasedValueProvider.cs
index 5063fd9059..22307ffad9 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/DictionaryBasedValueProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/DictionaryBasedValueProvider.cs
@@ -48,7 +48,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
{
result = null;
}
-
+
return Task.FromResult(result);
}
}
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/FormValueProviderFactory.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/FormValueProviderFactory.cs
index 8ac210b1ed..4318068775 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/FormValueProviderFactory.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/FormValueProviderFactory.cs
@@ -10,7 +10,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
{
public class FormValueProviderFactory : IValueProviderFactory
{
- private static MediaTypeHeaderValue _formEncodedContentType =
+ private static MediaTypeHeaderValue _formEncodedContentType =
MediaTypeHeaderValue.Parse("application/x-www-form-urlencoded");
public IValueProvider GetValueProvider([NotNull] ValueProviderFactoryContext context)
@@ -21,7 +21,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
{
var culture = GetCultureInfo(request);
return new ReadableStringCollectionValueProvider(
- () => request.GetFormAsync(),
+ () => request.GetFormAsync(),
culture);
}
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/MetadataAwareValueProvider.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/MetadataAwareValueProvider.cs
index e0d27c1e90..7784fa9712 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/MetadataAwareValueProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/MetadataAwareValueProvider.cs
@@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace Microsoft.AspNet.Mvc.ModelBinding
{
///
- /// A value provider which can filter
+ /// A value provider which can filter
/// based on .
///
/// Represents a type implementing
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/QueryStringValueProviderFactory.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/QueryStringValueProviderFactory.cs
index a33792bad3..a55a97a33f 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/QueryStringValueProviderFactory.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/QueryStringValueProviderFactory.cs
@@ -11,7 +11,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
public IValueProvider GetValueProvider([NotNull] ValueProviderFactoryContext context)
{
- // Process the query collection once-per request.
+ // Process the query collection once-per request.
var storage = context.HttpContext.Items;
object value;
IValueProvider provider;
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/ReadableStringCollectionValueProvider.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/ReadableStringCollectionValueProvider.cs
index 0ce9ff5d3b..389a4ad00b 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/ReadableStringCollectionValueProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/ReadableStringCollectionValueProvider.cs
@@ -11,7 +11,7 @@ using Microsoft.AspNet.Mvc.ModelBinding.Internal;
namespace Microsoft.AspNet.Mvc.ModelBinding
{
- public class ReadableStringCollectionValueProvider :
+ public class ReadableStringCollectionValueProvider :
MetadataAwareValueProvider, IEnumerableValueProvider
where TBinderMetadata : IValueProviderMetadata
{
diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/ValueProviderFactoryContext.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/ValueProviderFactoryContext.cs
index 020bc00b44..5c10d7e4f2 100644
--- a/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/ValueProviderFactoryContext.cs
+++ b/src/Microsoft.AspNet.Mvc.ModelBinding/ValueProviders/ValueProviderFactoryContext.cs
@@ -9,7 +9,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
public class ValueProviderFactoryContext
{
public ValueProviderFactoryContext(
- [NotNull] HttpContext httpContext,
+ [NotNull] HttpContext httpContext,
[NotNull] IDictionary routeValues)
{
HttpContext = httpContext;
diff --git a/src/Microsoft.AspNet.Mvc.Razor.Host/Directives/ChunkHelper.cs b/src/Microsoft.AspNet.Mvc.Razor.Host/Directives/ChunkHelper.cs
index 95879e921d..8538604c3f 100644
--- a/src/Microsoft.AspNet.Mvc.Razor.Host/Directives/ChunkHelper.cs
+++ b/src/Microsoft.AspNet.Mvc.Razor.Host/Directives/ChunkHelper.cs
@@ -68,7 +68,7 @@ namespace Microsoft.AspNet.Mvc.Razor.Directives
}
///
- /// Returns a string with the <TModel> token replaced with the value specified in
+ /// Returns a string with the <TModel> token replaced with the value specified in
/// .
///
/// The string to replace the token in.
diff --git a/src/Microsoft.AspNet.Mvc.Razor.Host/IMvcRazorHost.cs b/src/Microsoft.AspNet.Mvc.Razor.Host/IMvcRazorHost.cs
index 74b11d11ff..71cb47bf5f 100644
--- a/src/Microsoft.AspNet.Mvc.Razor.Host/IMvcRazorHost.cs
+++ b/src/Microsoft.AspNet.Mvc.Razor.Host/IMvcRazorHost.cs
@@ -14,7 +14,7 @@ namespace Microsoft.AspNet.Mvc.Razor
///
/// Parses and generates the contents of a Razor file represented by .
///
- /// The path of the relative to the root of the application.
+ /// The path of the relative to the root of the application.
/// Used to generate line pragmas and calculate the class name of the generated type.
/// A that represents the Razor contents.
/// A instance that represents the results of code generation.
diff --git a/src/Microsoft.AspNet.Mvc.Razor.Host/InjectChunkVisitor.cs b/src/Microsoft.AspNet.Mvc.Razor.Host/InjectChunkVisitor.cs
index 1304e76823..42c289a7a7 100644
--- a/src/Microsoft.AspNet.Mvc.Razor.Host/InjectChunkVisitor.cs
+++ b/src/Microsoft.AspNet.Mvc.Razor.Host/InjectChunkVisitor.cs
@@ -30,9 +30,9 @@ namespace Microsoft.AspNet.Mvc.Razor
{
Writer.WriteLine(_activateAttribute);
- // Some of the chunks that we visit are either InjectDescriptors that are added by default or
- // are chunks from _ViewStart files and are not associated with any Spans. Invoking
- // CreateExpressionMapping to produce line mappings on these chunks would fail. We'll skip
+ // Some of the chunks that we visit are either InjectDescriptors that are added by default or
+ // are chunks from _ViewStart files and are not associated with any Spans. Invoking
+ // CreateExpressionMapping to produce line mappings on these chunks would fail. We'll skip
// generating code mappings for these chunks. This makes sense since the chunks do not map
// to any code in the current view.
if (Context.Host.DesignTimeMode && chunk.Association != null)
diff --git a/src/Microsoft.AspNet.Mvc.Razor.Host/InjectParameterGenerator.cs b/src/Microsoft.AspNet.Mvc.Razor.Host/InjectParameterGenerator.cs
index fdca4ab85d..56af54a177 100644
--- a/src/Microsoft.AspNet.Mvc.Razor.Host/InjectParameterGenerator.cs
+++ b/src/Microsoft.AspNet.Mvc.Razor.Host/InjectParameterGenerator.cs
@@ -17,7 +17,7 @@ namespace Microsoft.AspNet.Mvc.Razor
}
public string TypeName { get; private set; }
-
+
public string PropertyName { get; private set; }
public override void GenerateCode(Span target, CodeGeneratorContext context)
@@ -41,7 +41,7 @@ namespace Microsoft.AspNet.Mvc.Razor
public override int GetHashCode()
{
- return TypeName.GetHashCode() +
+ return TypeName.GetHashCode() +
(PropertyName.GetHashCode() * 13);
}
}
diff --git a/src/Microsoft.AspNet.Mvc.Razor.Host/MvcRazorHost.cs b/src/Microsoft.AspNet.Mvc.Razor.Host/MvcRazorHost.cs
index c0063996fc..0007518f79 100644
--- a/src/Microsoft.AspNet.Mvc.Razor.Host/MvcRazorHost.cs
+++ b/src/Microsoft.AspNet.Mvc.Razor.Host/MvcRazorHost.cs
@@ -33,7 +33,7 @@ namespace Microsoft.AspNet.Mvc.Razor
private readonly IFileSystem _fileSystem;
- // CodeGenerationContext.DefaultBaseClass is set to MyBaseType.
+ // CodeGenerationContext.DefaultBaseClass is set to MyBaseType.
// This field holds the type name without the generic decoration (MyBaseType)
private readonly string _baseType;
private ChunkInheritanceUtility _chunkInheritanceUtility;
diff --git a/src/Microsoft.AspNet.Mvc.Razor.Host/MvcTagHelperAttributeValueCodeRenderer.cs b/src/Microsoft.AspNet.Mvc.Razor.Host/MvcTagHelperAttributeValueCodeRenderer.cs
index 7c012a34b2..e66e618f5e 100644
--- a/src/Microsoft.AspNet.Mvc.Razor.Host/MvcTagHelperAttributeValueCodeRenderer.cs
+++ b/src/Microsoft.AspNet.Mvc.Razor.Host/MvcTagHelperAttributeValueCodeRenderer.cs
@@ -25,7 +25,7 @@ namespace Microsoft.AspNet.Mvc.Razor
}
///
- /// If the attribute being rendered is of the type
+ /// If the attribute being rendered is of the type
/// then a model expression will be
/// created by calling into .
///
diff --git a/src/Microsoft.AspNet.Mvc.Razor.Host/Resources.resx b/src/Microsoft.AspNet.Mvc.Razor.Host/Resources.resx
index adb2366a39..7d3f712692 100644
--- a/src/Microsoft.AspNet.Mvc.Razor.Host/Resources.resx
+++ b/src/Microsoft.AspNet.Mvc.Razor.Host/Resources.resx
@@ -1,17 +1,17 @@
-
diff --git a/src/Microsoft.AspNet.Mvc.Razor/IRazorPage.cs b/src/Microsoft.AspNet.Mvc.Razor/IRazorPage.cs
index ec65dc579b..6e62b4a2b8 100644
--- a/src/Microsoft.AspNet.Mvc.Razor/IRazorPage.cs
+++ b/src/Microsoft.AspNet.Mvc.Razor/IRazorPage.cs
@@ -29,7 +29,7 @@ namespace Microsoft.AspNet.Mvc.Razor
///
///
/// Sections defined in a page are deferred and executed as part of the layout page.
- /// When this flag is set, all write operations performed by the page are part of a
+ /// When this flag is set, all write operations performed by the page are part of a
/// section being rendered.
///
bool IsLayoutBeingRendered { get; set; }
diff --git a/src/Microsoft.AspNet.Mvc.Razor/IRazorViewFactory.cs b/src/Microsoft.AspNet.Mvc.Razor/IRazorViewFactory.cs
index 67f7334e70..1850ffd186 100644
--- a/src/Microsoft.AspNet.Mvc.Razor/IRazorViewFactory.cs
+++ b/src/Microsoft.AspNet.Mvc.Razor/IRazorViewFactory.cs
@@ -15,7 +15,7 @@ namespace Microsoft.AspNet.Mvc.Razor
///
/// The instance to execute.
/// Determines if the view is to be executed as a partial.
- /// A instance that renders the contents of the
+ /// A instance that renders the contents of the
IView GetView([NotNull] IRazorPage page, bool isPartial);
}
}
\ No newline at end of file
diff --git a/src/Microsoft.AspNet.Mvc.Razor/IViewLocationCache.cs b/src/Microsoft.AspNet.Mvc.Razor/IViewLocationCache.cs
index 1689120cba..89fe997a3d 100644
--- a/src/Microsoft.AspNet.Mvc.Razor/IViewLocationCache.cs
+++ b/src/Microsoft.AspNet.Mvc.Razor/IViewLocationCache.cs
@@ -11,7 +11,7 @@ namespace Microsoft.AspNet.Mvc.Razor
///
/// Gets a cached view location based on the specified .
///
- /// The for the current view location
+ /// The for the current view location
/// expansion.
/// The cached location, if available, null otherwise.
string Get(ViewLocationExpanderContext context);
@@ -19,7 +19,7 @@ namespace Microsoft.AspNet.Mvc.Razor
///
/// Adds a cache entry for values specified by .
///
- /// The for the current view location
+ /// The for the current view location
/// expansion.
/// The view location that is to be cached.
void Set(ViewLocationExpanderContext context, string value);
diff --git a/src/Microsoft.AspNet.Mvc.Razor/IViewLocationExpander.cs b/src/Microsoft.AspNet.Mvc.Razor/IViewLocationExpander.cs
index 037a3935d5..8fa598326d 100644
--- a/src/Microsoft.AspNet.Mvc.Razor/IViewLocationExpander.cs
+++ b/src/Microsoft.AspNet.Mvc.Razor/IViewLocationExpander.cs
@@ -12,13 +12,13 @@ namespace Microsoft.AspNet.Mvc.Razor
///
/// Individual s are invoked in two steps:
/// (1) is invoked and each expander
- /// adds values that it would later consume as part of
+ /// adds values that it would later consume as part of
/// .
/// The populated values are used to determine a cache key - if all values are identical to the last time
/// was invoked, the cached result
/// is used as the view location.
- /// (2) If no result was found in the cache or if a view was not found at the cached location,
- /// is invoked to determine
+ /// (2) If no result was found in the cache or if a view was not found at the cached location,
+ /// is invoked to determine
/// all potential paths for a view.
///
public interface IViewLocationExpander
diff --git a/src/Microsoft.AspNet.Mvc.Razor/OptionDescriptors/DefaultViewLocationExpanderProvider.cs b/src/Microsoft.AspNet.Mvc.Razor/OptionDescriptors/DefaultViewLocationExpanderProvider.cs
index da9e06f820..a1052759b2 100644
--- a/src/Microsoft.AspNet.Mvc.Razor/OptionDescriptors/DefaultViewLocationExpanderProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.Razor/OptionDescriptors/DefaultViewLocationExpanderProvider.cs
@@ -18,7 +18,7 @@ namespace Microsoft.AspNet.Mvc.Razor.OptionDescriptors
///
/// An accessor to the configured for this application.
/// An instance used to instantiate types.
- /// A instance that retrieves services from the
+ /// A instance that retrieves services from the
/// service collection.
public DefaultViewLocationExpanderProvider(
IOptions optionsAccessor,
diff --git a/src/Microsoft.AspNet.Mvc.Razor/OptionDescriptors/ViewLocationExpanderDescriptorExtensions.cs b/src/Microsoft.AspNet.Mvc.Razor/OptionDescriptors/ViewLocationExpanderDescriptorExtensions.cs
index a8c7a7f370..d390f1403f 100644
--- a/src/Microsoft.AspNet.Mvc.Razor/OptionDescriptors/ViewLocationExpanderDescriptorExtensions.cs
+++ b/src/Microsoft.AspNet.Mvc.Razor/OptionDescriptors/ViewLocationExpanderDescriptorExtensions.cs
@@ -32,7 +32,7 @@ namespace Microsoft.AspNet.Mvc.Razor
/// the specified .
///
/// A list of .
- /// The zero-based index at which
+ /// The zero-based index at which
/// should be inserted.
/// Type representing an
/// A representing the inserted instance.
@@ -71,7 +71,7 @@ namespace Microsoft.AspNet.Mvc.Razor
/// .
///
/// A list of .
- /// The zero-based index at which
+ /// The zero-based index at which
/// should be inserted.
/// An instance.
/// A representing the added instance.
diff --git a/src/Microsoft.AspNet.Mvc.Razor/Razor/PreCompileViews/RazorFileInfoCollectionGenerator.cs b/src/Microsoft.AspNet.Mvc.Razor/Razor/PreCompileViews/RazorFileInfoCollectionGenerator.cs
index ddba5a1ef0..3ff31eca2c 100644
--- a/src/Microsoft.AspNet.Mvc.Razor/Razor/PreCompileViews/RazorFileInfoCollectionGenerator.cs
+++ b/src/Microsoft.AspNet.Mvc.Razor/Razor/PreCompileViews/RazorFileInfoCollectionGenerator.cs
@@ -36,7 +36,7 @@ namespace Microsoft.AspNet.Mvc.Razor
builder.Append(Bottom);
var sourceCode = builder.ToString();
- var syntaxTree = SyntaxTreeGenerator.Generate(sourceCode,
+ var syntaxTree = SyntaxTreeGenerator.Generate(sourceCode,
"__AUTO__GeneratedViewsCollection.cs",
Options);
@@ -58,7 +58,7 @@ namespace Microsoft.AspNet.Mvc.Razor
{
get
{
- return
+ return
@"using System;
using System.Collections.Generic;
using Microsoft.AspNet.Mvc.Razor;
diff --git a/src/Microsoft.AspNet.Mvc.Razor/Razor/PreCompileViews/RazorPreCompiler.cs b/src/Microsoft.AspNet.Mvc.Razor/Razor/PreCompileViews/RazorPreCompiler.cs
index 4d793366ca..6f58811592 100644
--- a/src/Microsoft.AspNet.Mvc.Razor/Razor/PreCompileViews/RazorPreCompiler.cs
+++ b/src/Microsoft.AspNet.Mvc.Razor/Razor/PreCompileViews/RazorPreCompiler.cs
@@ -20,7 +20,7 @@ namespace Microsoft.AspNet.Mvc.Razor
private readonly IMvcRazorHost _host;
public RazorPreCompiler([NotNull] IServiceProvider designTimeServiceProvider) :
- this(designTimeServiceProvider,
+ this(designTimeServiceProvider,
designTimeServiceProvider.GetRequiredService(),
designTimeServiceProvider.GetRequiredService>())
{
diff --git a/src/Microsoft.AspNet.Mvc.Razor/RazorPage.cs b/src/Microsoft.AspNet.Mvc.Razor/RazorPage.cs
index 870503d01b..765006c249 100644
--- a/src/Microsoft.AspNet.Mvc.Razor/RazorPage.cs
+++ b/src/Microsoft.AspNet.Mvc.Razor/RazorPage.cs
@@ -149,7 +149,7 @@ namespace Microsoft.AspNet.Mvc.Razor
/// Starts a new writing scope.
///
///
- /// All writes to the or after calling this method will
+ /// All writes to the or after calling this method will
/// be buffered until is called.
///
public void StartWritingScope()
@@ -170,7 +170,7 @@ namespace Microsoft.AspNet.Mvc.Razor
///
/// Ends the current writing scope that was started by calling .
///
- /// The that contains the content written to the or
+ /// The that contains the content written to the or
/// during the writing scope.
public TextWriter EndWritingScope()
{
@@ -325,7 +325,7 @@ namespace Microsoft.AspNet.Mvc.Razor
continue;
}
- // The special cases here are that the value we're writing might already be a string, or that the
+ // The special cases here are that the value we're writing might already be a string, or that the
// value might be a bool. If the value is the bool 'true' we want to write the attribute name
// instead of the string 'true'. If the value is the bool 'false' we don't want to write anything.
// Otherwise the value is another object (perhaps an HtmlString) and we'll ask it to format itself.
@@ -427,7 +427,7 @@ namespace Microsoft.AspNet.Mvc.Razor
}
///
- /// Creates a named content section in the page that can be invoked in a Layout page using
+ /// Creates a named content section in the page that can be invoked in a Layout page using
/// or .
///
/// The name of the section to create.
diff --git a/src/Microsoft.AspNet.Mvc.Razor/RazorPageActivator.cs b/src/Microsoft.AspNet.Mvc.Razor/RazorPageActivator.cs
index aa4f99dd48..6e0a7feaa7 100644
--- a/src/Microsoft.AspNet.Mvc.Razor/RazorPageActivator.cs
+++ b/src/Microsoft.AspNet.Mvc.Razor/RazorPageActivator.cs
@@ -43,7 +43,7 @@ namespace Microsoft.AspNet.Mvc.Razor
private ViewDataDictionary CreateViewDataDictionary(ViewContext context, PageActivationInfo activationInfo)
{
- // Create a ViewDataDictionary if the ViewContext.ViewData is not set or the type of
+ // Create a ViewDataDictionary if the ViewContext.ViewData is not set or the type of
// ViewContext.ViewData is an incompatibile type.
if (context.ViewData == null)
{
@@ -65,7 +65,7 @@ namespace Microsoft.AspNet.Mvc.Razor
private PageActivationInfo CreateViewActivationInfo(Type type)
{
- // Look for a property named "Model". If it is non-null, we'll assume this is
+ // Look for a property named "Model". If it is non-null, we'll assume this is
// the equivalent of TModel Model property on RazorPage
var modelProperty = type.GetRuntimeProperty(ModelPropertyName);
if (modelProperty == null)
diff --git a/src/Microsoft.AspNet.Mvc.Razor/RazorView.cs b/src/Microsoft.AspNet.Mvc.Razor/RazorView.cs
index e9378eae55..613e44a619 100644
--- a/src/Microsoft.AspNet.Mvc.Razor/RazorView.cs
+++ b/src/Microsoft.AspNet.Mvc.Razor/RazorView.cs
@@ -10,7 +10,7 @@ using Microsoft.AspNet.PageExecutionInstrumentation;
namespace Microsoft.AspNet.Mvc.Razor
{
///
- /// Default implementation for that executes one or more
+ /// Default implementation for that executes one or more
/// as parts of its exeuction.
///
public class RazorView : IView
@@ -33,7 +33,7 @@ namespace Microsoft.AspNet.Mvc.Razor
IRazorPageActivator pageActivator,
IViewStartProvider viewStartProvider,
IRazorPage razorPage,
- bool isPartial
+ bool isPartial
)
{
_pageFactory = pageFactory;
@@ -44,7 +44,7 @@ namespace Microsoft.AspNet.Mvc.Razor
}
///
- /// Gets instance that the views executes on.
+ /// Gets instance that the views executes on.
///
public IRazorPage RazorPage { get; }
@@ -86,7 +86,7 @@ namespace Microsoft.AspNet.Mvc.Razor
}
else
{
- // For the non-instrumented case, we don't need to buffer contents. For Html.Partial, the writer is
+ // For the non-instrumented case, we don't need to buffer contents. For Html.Partial, the writer is
// an in memory writer and for Partial views, we directly write to the Response.
await RenderPageCoreAsync(RazorPage, context);
}
diff --git a/src/Microsoft.AspNet.Mvc.Razor/RazorViewFactory.cs b/src/Microsoft.AspNet.Mvc.Razor/RazorViewFactory.cs
index 78c313eed1..2b9125c647 100644
--- a/src/Microsoft.AspNet.Mvc.Razor/RazorViewFactory.cs
+++ b/src/Microsoft.AspNet.Mvc.Razor/RazorViewFactory.cs
@@ -6,7 +6,7 @@ using Microsoft.AspNet.Mvc.Rendering;
namespace Microsoft.AspNet.Mvc.Razor
{
///
- /// Represents the default implementation that creates
+ /// Represents the default implementation that creates
/// instances with a given .
///
public class RazorViewFactory : IRazorViewFactory
diff --git a/src/Microsoft.AspNet.Mvc.Razor/Resources.resx b/src/Microsoft.AspNet.Mvc.Razor/Resources.resx
index a7f976fd02..4cad822f56 100644
--- a/src/Microsoft.AspNet.Mvc.Razor/Resources.resx
+++ b/src/Microsoft.AspNet.Mvc.Razor/Resources.resx
@@ -1,17 +1,17 @@
-
diff --git a/src/Microsoft.AspNet.Mvc.Razor/ViewLocationExpanderContext.cs b/src/Microsoft.AspNet.Mvc.Razor/ViewLocationExpanderContext.cs
index 98d0a4fb82..2be3d076fa 100644
--- a/src/Microsoft.AspNet.Mvc.Razor/ViewLocationExpanderContext.cs
+++ b/src/Microsoft.AspNet.Mvc.Razor/ViewLocationExpanderContext.cs
@@ -23,7 +23,7 @@ namespace Microsoft.AspNet.Mvc.Razor
public ActionContext ActionContext { get; private set; }
///
- /// Gets the view name
+ /// Gets the view name
///
public string ViewName { get; private set; }
diff --git a/src/Microsoft.AspNet.Mvc.Razor/ViewStartProvider.cs b/src/Microsoft.AspNet.Mvc.Razor/ViewStartProvider.cs
index 3020074580..e04b151332 100644
--- a/src/Microsoft.AspNet.Mvc.Razor/ViewStartProvider.cs
+++ b/src/Microsoft.AspNet.Mvc.Razor/ViewStartProvider.cs
@@ -30,7 +30,7 @@ namespace Microsoft.AspNet.Mvc.Razor
.Where(p => p != null)
.ToArray();
- // GetViewStartLocations return ViewStarts inside-out that is the _ViewStart closest to the page
+ // GetViewStartLocations return ViewStarts inside-out that is the _ViewStart closest to the page
// is the first: e.g. [ /Views/Home/_ViewStart, /Views/_ViewStart, /_ViewStart ]
// However they need to be executed outside in, so we'll reverse the sequence.
Array.Reverse(viewStarts);
diff --git a/src/Microsoft.AspNet.Mvc.TagHelpers/AnchorTagHelper.cs b/src/Microsoft.AspNet.Mvc.TagHelpers/AnchorTagHelper.cs
index de44129068..2f93c4ff3c 100644
--- a/src/Microsoft.AspNet.Mvc.TagHelpers/AnchorTagHelper.cs
+++ b/src/Microsoft.AspNet.Mvc.TagHelpers/AnchorTagHelper.cs
@@ -58,8 +58,8 @@ namespace Microsoft.AspNet.Mvc.TagHelpers
public string Route { get; set; }
///
- /// Does nothing if user provides an "href" attribute. Throws an
- /// if "href" attribute is provided and ,
+ /// Does nothing if user provides an "href" attribute. Throws an
+ /// if "href" attribute is provided and ,
/// , or are non-null .
public override void Process(TagHelperContext context, TagHelperOutput output)
{
@@ -68,12 +68,12 @@ namespace Microsoft.AspNet.Mvc.TagHelpers
// If there's an "href" on the tag it means it's being used as a normal anchor.
if (output.Attributes.ContainsKey(Href))
{
- if (Action != null ||
- Controller != null ||
- Route != null ||
- Protocol != null ||
- Host != null ||
- Fragment != null ||
+ if (Action != null ||
+ Controller != null ||
+ Route != null ||
+ Protocol != null ||
+ Host != null ||
+ Fragment != null ||
routePrefixedAttributes.Any())
{
// User specified an href and one of the bound attributes; can't determine the href attribute.
diff --git a/src/Microsoft.AspNet.Mvc.TagHelpers/FormTagHelper.cs b/src/Microsoft.AspNet.Mvc.TagHelpers/FormTagHelper.cs
index afed9813aa..788282284d 100644
--- a/src/Microsoft.AspNet.Mvc.TagHelpers/FormTagHelper.cs
+++ b/src/Microsoft.AspNet.Mvc.TagHelpers/FormTagHelper.cs
@@ -73,7 +73,7 @@ namespace Microsoft.AspNet.Mvc.TagHelpers
RouteAttributePrefix));
}
- // User is using the FormTagHelper like a normal