API Review - Split up .Actions

Abstractions - Core MVC extensibility

Controllers - MVC implementations of .Abstractions and supporting
contracts

Infrastructure - General purpose support APIs. Metadata APIs that don't
fit clearly with a feature or with .Abstraction
This commit is contained in:
Ryan Nowak 2015-09-21 00:15:33 -07:00
parent 00b6e71e31
commit a318c4599a
267 changed files with 346 additions and 297 deletions

View File

@ -7,7 +7,7 @@ using Microsoft.AspNet.Mvc.ActionConstraints;
using Microsoft.AspNet.Mvc.Filters;
using Microsoft.AspNet.Mvc.Routing;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Abstractions
{
public class ActionDescriptor
{

View File

@ -3,7 +3,7 @@
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Abstractions
{
/// <summary>
/// Extension methods for <see cref="ActionDescriptor"/>.

View File

@ -3,7 +3,7 @@
using System.Collections.Generic;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Abstractions
{
public class ActionDescriptorProviderContext
{

View File

@ -3,7 +3,7 @@
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Abstractions
{
public class ActionInvokerProviderContext
{

View File

@ -3,7 +3,7 @@
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Abstractions
{
public interface IActionDescriptorProvider
{

View File

@ -3,7 +3,7 @@
using System.Threading.Tasks;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Abstractions
{
public interface IActionInvoker
{

View File

@ -3,7 +3,7 @@
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Abstractions
{
public interface IActionInvokerProvider
{

View File

@ -4,7 +4,7 @@
using System;
using Microsoft.AspNet.Mvc.ModelBinding;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Abstractions
{
public class ParameterDescriptor
{

View File

@ -3,7 +3,7 @@
using System.Collections.Generic;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.ActionConstraints

View File

@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.ActionConstraints

View File

@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.AspNet.Mvc.ModelBinding;
using Microsoft.AspNet.Routing;
using Microsoft.Framework.Internal;
@ -43,7 +43,7 @@ namespace Microsoft.AspNet.Mvc
/// </summary>
/// <param name="httpContext">The <see cref="Http.HttpContext"/> for the current request.</param>
/// <param name="routeData">The <see cref="AspNet.Routing.RouteData"/> for the current request.</param>
/// <param name="actionDescriptor">The <see cref="Actions.ActionDescriptor"/> for the selected action.</param>
/// <param name="actionDescriptor">The <see cref="Abstractions.ActionDescriptor"/> for the selected action.</param>
public ActionContext(
[NotNull] HttpContext httpContext,
[NotNull] RouteData routeData,
@ -57,7 +57,7 @@ namespace Microsoft.AspNet.Mvc
/// </summary>
/// <param name="httpContext">The <see cref="Http.HttpContext"/> for the current request.</param>
/// <param name="routeData">The <see cref="AspNet.Routing.RouteData"/> for the current request.</param>
/// <param name="actionDescriptor">The <see cref="Actions.ActionDescriptor"/> for the selected action.</param>
/// <param name="actionDescriptor">The <see cref="Abstractions.ActionDescriptor"/> for the selected action.</param>
/// <param name="modelState">The <see cref="ModelStateDictionary"/>.</param>
public ActionContext(
[NotNull] HttpContext httpContext,
@ -72,7 +72,7 @@ namespace Microsoft.AspNet.Mvc
}
/// <summary>
/// Gets or sets the <see cref="Actions.ActionDescriptor"/> for the selected action.
/// Gets or sets the <see cref="Abstractions.ActionDescriptor"/> for the selected action.
/// </summary>
/// <remarks>
/// The property setter is provided for unit test purposes only.

View File

@ -4,7 +4,6 @@
using System;
using System.Collections.Generic;
using System.Runtime.ExceptionServices;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Filters

View File

@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Filters

View File

@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Filters

View File

@ -4,7 +4,6 @@
using System;
using System.Collections.Generic;
using System.Runtime.ExceptionServices;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Filters

View File

@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Filters

View File

@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Filters

View File

@ -4,7 +4,6 @@
using System;
using System.Collections.Generic;
using System.Runtime.ExceptionServices;
using Microsoft.AspNet.Mvc.Actions;
namespace Microsoft.AspNet.Mvc.Filters
{

View File

@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Formatters;
using Microsoft.AspNet.Mvc.ModelBinding;
using Microsoft.AspNet.Mvc.ModelBinding.Validation;

View File

@ -4,7 +4,6 @@
using System;
using System.Collections.Generic;
using System.Runtime.ExceptionServices;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Filters

View File

@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Filters

View File

@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.Actions;
namespace Microsoft.AspNet.Mvc
{

View File

@ -3,7 +3,7 @@
using System;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Routing
{
/// <summary>
/// Constraints an action to a route key and value.

View File

@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Routing
{
public enum RouteKeyHandling
{

View File

@ -3,7 +3,7 @@
using System;
using System.Collections.Generic;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.AspNet.Mvc.ModelBinding;
namespace Microsoft.AspNet.Mvc.ApiExplorer

View File

@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Infrastructure;
namespace Microsoft.AspNet.Mvc.ApiExplorer
{

View File

@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.ApiExplorer

View File

@ -6,8 +6,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.AspNet.Mvc.ActionConstraints;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Controllers;
using Microsoft.AspNet.Mvc.Formatters;
using Microsoft.AspNet.Mvc.ModelBinding;
using Microsoft.AspNet.Routing;

View File

@ -4,8 +4,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Routing;
using Microsoft.AspNet.Mvc.Infrastructure;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc

View File

@ -6,7 +6,7 @@ using Microsoft.AspNet.Mvc.Formatters;
using Microsoft.AspNet.Mvc.ModelBinding;
using Microsoft.AspNet.Mvc.ModelBinding.Validation;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc
{
public class ActionBindingContext
{

View File

@ -7,7 +7,7 @@ namespace Microsoft.AspNet.Mvc
{
/// <summary>
/// Specifies that a controller property should be set with the current
/// <see cref="Actions.ActionBindingContext"/> when creating the controller. The property must have a public
/// <see cref="ActionBindingContext"/> when creating the controller. The property must have a public
/// set method.
/// </summary>
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]

View File

@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.AspNet.Routing;
namespace Microsoft.AspNet.Mvc.ActionConstraints

View File

@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.Actions;
namespace Microsoft.AspNet.Mvc
{

View File

@ -5,7 +5,7 @@ namespace Microsoft.AspNet.Mvc.ApiExplorer
{
/// <summary>
/// Represents data used to build an <c>ApiDescription</c>, stored as part of the
/// <see cref="Actions.ActionDescriptor.Properties"/>.
/// <see cref="Abstractions.ActionDescriptor.Properties"/>.
/// </summary>
public class ApiDescriptionActionData
{

View File

@ -6,8 +6,8 @@ using System.Diagnostics;
using System.Linq;
using System.Reflection;
using Microsoft.AspNet.Mvc.ActionConstraints;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Filters;
using Microsoft.AspNet.Mvc.Infrastructure;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.ApplicationModels
@ -92,7 +92,7 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
/// <summary>
/// Gets a set of properties associated with the action.
/// These properties will be copied to <see cref="ActionDescriptor.Properties"/>.
/// These properties will be copied to <see cref="Abstractions.ActionDescriptor.Properties"/>.
/// </summary>
/// <remarks>
/// Entries will take precedence over entries with the same key in

View File

@ -37,7 +37,7 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
/// <summary>
/// Gets a set of properties associated with all actions.
/// These properties will be copied to <see cref="Actions.ActionDescriptor.Properties"/>.
/// These properties will be copied to <see cref="Abstractions.ActionDescriptor.Properties"/>.
/// </summary>
public IDictionary<object, object> Properties { get; }
}

View File

@ -6,7 +6,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.Routing;
using Microsoft.AspNet.Mvc.Infrastructure;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.ApplicationModels

View File

@ -6,8 +6,8 @@ using System.Diagnostics;
using System.Linq;
using System.Reflection;
using Microsoft.AspNet.Mvc.ActionConstraints;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Filters;
using Microsoft.AspNet.Mvc.Infrastructure;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.ApplicationModels
@ -91,7 +91,7 @@ namespace Microsoft.AspNet.Mvc.ApplicationModels
/// <summary>
/// Gets a set of properties associated with the controller.
/// These properties will be copied to <see cref="ActionDescriptor.Properties"/>.
/// These properties will be copied to <see cref="Abstractions.ActionDescriptor.Properties"/>.
/// </summary>
/// <remarks>
/// Entries will take precedence over entries with the same key

View File

@ -5,10 +5,11 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.AspNet.Mvc.ActionConstraints;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.ApiExplorer;
using Microsoft.AspNet.Mvc.Filters;
using Microsoft.AspNet.Mvc.Infrastructure;
using Microsoft.AspNet.Mvc.ModelBinding;
using Microsoft.AspNet.Mvc.Routing;
using Microsoft.Framework.Internal;

View File

@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Infrastructure;
namespace Microsoft.AspNet.Mvc
{

View File

@ -2,8 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Infrastructure;
using Microsoft.AspNet.Mvc.Internal;
using Microsoft.AspNet.Mvc.Routing;
using Microsoft.AspNet.Routing;

View File

@ -4,7 +4,6 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNet.Http.Authentication;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc

View File

@ -4,8 +4,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.AspNet.Mvc.ActionConstraints;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.Filters;
using Microsoft.Framework.Internal;

View File

@ -4,8 +4,9 @@
using System;
using System.Diagnostics;
using System.Reflection;
using Microsoft.AspNet.Mvc.Abstractions;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
[DebuggerDisplay("CA {DisplayName}(RC-{RouteConstraints.Count})")]
public class ControllerActionDescriptor : ActionDescriptor

View File

@ -7,14 +7,16 @@ using System.Diagnostics;
using System.Globalization;
using System.Linq;
using System.Reflection;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.AspNet.Mvc.ActionConstraints;
using Microsoft.AspNet.Mvc.ApiExplorer;
using Microsoft.AspNet.Mvc.ApplicationModels;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.Filters;
using Microsoft.AspNet.Mvc.Infrastructure;
using Microsoft.AspNet.Mvc.Routing;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
/// <summary>
/// Creates instances of <see cref="ControllerActionDescriptor"/> from <see cref="ApplicationModel"/>.

View File

@ -3,11 +3,12 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.AspNet.Mvc.ApplicationModels;
using Microsoft.Framework.Internal;
using Microsoft.Framework.OptionsModel;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
public class ControllerActionDescriptorProvider : IActionDescriptorProvider
{

View File

@ -11,7 +11,7 @@ using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
public static class ControllerActionExecutor
{

View File

@ -10,12 +10,13 @@ using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.Filters;
using Microsoft.AspNet.Mvc.Formatters;
using Microsoft.AspNet.Mvc.Infrastructure;
using Microsoft.AspNet.Mvc.ModelBinding;
using Microsoft.AspNet.Mvc.ModelBinding.Validation;
using Microsoft.Framework.Internal;
using Microsoft.Framework.Logging;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
public class ControllerActionInvoker : FilterActionInvoker
{

View File

@ -4,15 +4,17 @@
using System.Collections.Generic;
using System.Diagnostics.Tracing;
using System.Linq;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.AspNet.Mvc.Filters;
using Microsoft.AspNet.Mvc.Formatters;
using Microsoft.AspNet.Mvc.Infrastructure;
using Microsoft.AspNet.Mvc.ModelBinding;
using Microsoft.AspNet.Mvc.ModelBinding.Validation;
using Microsoft.Framework.Internal;
using Microsoft.Framework.Logging;
using Microsoft.Framework.OptionsModel;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
public class ControllerActionInvokerProvider : IActionInvokerProvider
{

View File

@ -2,8 +2,9 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Reflection;
using Microsoft.AspNet.Mvc.Abstractions;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
/// <summary>
/// A descriptor for model bound properties of a controller.

View File

@ -2,8 +2,9 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Reflection;
using Microsoft.AspNet.Mvc.Abstractions;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
/// <summary>
/// A descriptor for method parameters of an action method.

View File

@ -6,12 +6,13 @@ using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.ModelBinding;
using Microsoft.AspNet.Mvc.ModelBinding.Validation;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
/// <summary>
/// Provides a default implementation of <see cref="IControllerActionArgumentBinder"/>.

View File

@ -2,10 +2,11 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.AspNet.Mvc.Infrastructure;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
/// <summary>
/// <see cref="IControllerActivator"/> that uses type activation to create controllers.

View File

@ -8,7 +8,7 @@ using System.Reflection;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
/// <summary>
/// Default implementation for <see cref="IControllerFactory"/>.

View File

@ -5,10 +5,10 @@ using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Framework.DependencyInjection;
using Microsoft.AspNet.Mvc.Infrastructure;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
public class DefaultControllerPropertyActivator : IControllerPropertyActivator
{

View File

@ -5,9 +5,10 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Microsoft.AspNet.Mvc.Infrastructure;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
/// <summary>
/// A <see cref="IControllerTypeProvider"/> that identifies controller types from assemblies

View File

@ -8,16 +8,18 @@ using System.Diagnostics.Tracing;
using System.Linq;
using System.Runtime.ExceptionServices;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.Filters;
using Microsoft.AspNet.Mvc.Formatters;
using Microsoft.AspNet.Mvc.Infrastructure;
using Microsoft.AspNet.Mvc.Internal;
using Microsoft.AspNet.Mvc.ModelBinding;
using Microsoft.AspNet.Mvc.ModelBinding.Validation;
using Microsoft.Framework.Internal;
using Microsoft.Framework.Logging;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
public abstract class FilterActionInvoker : IActionInvoker
{

View File

@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
/// <summary>
/// Provides a dictionary of action arguments.

View File

@ -3,7 +3,7 @@
using System;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
/// <summary>
/// Provides methods to create a controller.

View File

@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
/// <summary>
/// Provides methods for creation and disposal of controllers.

View File

@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
public interface IControllerPropertyActivator
{

View File

@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.Reflection;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
/// <summary>
/// Provides methods for discovery of controller types.

View File

@ -5,7 +5,7 @@ using System;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
/// <summary>
/// A <see cref="IControllerActivator"/> that retrieves controllers as services from the request's

View File

@ -6,7 +6,7 @@ using System.Linq;
using System.Reflection;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Controllers
{
/// <summary>
/// A <see cref="IControllerTypeProvider"/> with a fixed set of types that are used as controllers.

View File

@ -4,7 +4,6 @@
using System;
using System.Collections.Generic;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.Routing;
using Microsoft.Framework.DependencyInjection;

View File

@ -3,7 +3,6 @@
using System;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;
using Microsoft.Net.Http.Headers;

View File

@ -2,13 +2,13 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Diagnostics.Tracing;
using System.Linq;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.AspNet.Mvc.ActionConstraints;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.ApplicationModels;
using Microsoft.AspNet.Mvc.Controllers;
using Microsoft.AspNet.Mvc.Filters;
using Microsoft.AspNet.Mvc.Infrastructure;
using Microsoft.AspNet.Mvc.Internal;
using Microsoft.AspNet.Mvc.ModelBinding;
using Microsoft.AspNet.Mvc.ModelBinding.Metadata;

View File

@ -1,7 +1,6 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc

View File

@ -4,7 +4,6 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;
using Microsoft.Net.Http.Headers;

View File

@ -3,9 +3,9 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.ApiExplorer;
using Microsoft.AspNet.Mvc.Filters;
using Microsoft.AspNet.Mvc.Infrastructure;
using Microsoft.Framework.Internal;
using Microsoft.Framework.OptionsModel;
using Microsoft.Net.Http.Headers;

View File

@ -1,7 +1,6 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc

View File

@ -8,7 +8,7 @@ using System.Runtime.Remoting.Messaging;
using System.Threading;
#endif
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Infrastructure
{
public class ActionBindingContextAccessor : IActionBindingContextAccessor
{

View File

@ -4,12 +4,11 @@
#if DNX451
using System.Runtime.Remoting;
using System.Runtime.Remoting.Messaging;
using Microsoft.AspNet.Mvc.Actions;
#else
using System.Threading;
#endif
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Infrastructure
{
public class ActionContextAccessor : IActionContextAccessor
{

View File

@ -2,9 +2,10 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Infrastructure
{
/// <summary>
/// A cached collection of <see cref="ActionDescriptor" />.

View File

@ -3,8 +3,9 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNet.Mvc.Abstractions;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Infrastructure
{
public class ActionInvokerFactory : IActionInvokerFactory
{

View File

@ -6,7 +6,7 @@ using System;
using System.Runtime.Serialization;
#endif
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Infrastructure
{
/// <summary>
/// An exception which indicates multiple matches in action selection.

View File

@ -4,9 +4,10 @@
using System;
using System.Collections.ObjectModel;
using System.Linq;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.Framework.DependencyInjection;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Infrastructure
{
/// <summary>
/// Default implementation for ActionDescriptors.

View File

@ -6,6 +6,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.AspNet.Mvc.ActionConstraints;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.Routing;
@ -13,7 +14,7 @@ using Microsoft.AspNet.Routing;
using Microsoft.Framework.Internal;
using Microsoft.Framework.Logging;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Infrastructure
{
public class DefaultActionSelector : IActionSelector
{

View File

@ -8,7 +8,7 @@ using System.Linq;
using System.Reflection;
using Microsoft.Dnx.Runtime;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Infrastructure
{
public class DefaultAssemblyProvider : IAssemblyProvider
{

View File

@ -6,7 +6,7 @@ using System.Collections.Concurrent;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Infrastructure
{
/// <summary>
/// Caches <see cref="ObjectFactory"/> instances produced by

View File

@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Infrastructure
{
public interface IActionBindingContextAccessor
{

View File

@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Infrastructure
{
public interface IActionContextAccessor
{

View File

@ -1,10 +1,10 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Infrastructure
{
/// <summary>
/// Provides the currently cached collection of <see cref="ActionDescriptor"/>.
/// Provides the currently cached collection of <see cref="Abstractions.ActionDescriptor"/>.
/// </summary>
/// <remarks>
/// The default implementation, does not update the cache, it is up to the user

View File

@ -3,7 +3,7 @@
using System.Collections.Generic;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Infrastructure
{
public interface IActionHttpMethodProvider
{

View File

@ -1,7 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNet.Mvc.Actions
using Microsoft.AspNet.Mvc.Abstractions;
namespace Microsoft.AspNet.Mvc.Infrastructure
{
public interface IActionInvokerFactory
{

View File

@ -2,9 +2,10 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.AspNet.Routing;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Infrastructure
{
public interface IActionSelector
{

View File

@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.Reflection;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Infrastructure
{
/// <summary>
/// Specifies the contract for discovering assemblies that may contain Mvc specific types such as controllers,

View File

@ -1,7 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNet.Mvc.Actions
using Microsoft.AspNet.Mvc.Routing;
namespace Microsoft.AspNet.Mvc.Infrastructure
{
/// <summary>
/// An interface for metadata which provides <see cref="RouteDataActionConstraint"/> values

View File

@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNet.Mvc.Routing
namespace Microsoft.AspNet.Mvc.Infrastructure
{
/// <summary>
/// Interface for attributes which can supply a route template for attribute routing.

View File

@ -3,7 +3,7 @@
using System;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Infrastructure
{
/// <summary>
/// Caches <see cref="Microsoft.Framework.DependencyInjection.ObjectFactory"/> instances produced by

View File

@ -5,6 +5,7 @@ using System;
using System.Diagnostics.Tracing;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.Internal;
using Microsoft.AspNet.Routing;
@ -12,7 +13,7 @@ using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;
using Microsoft.Framework.Logging;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Infrastructure
{
public class MvcRouteHandler : IRouter
{

View File

@ -3,9 +3,10 @@
using System;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.Routing;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Infrastructure
{
/// <summary>
/// An attribute which specifies a required route value for an action or controller.

View File

@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.Reflection;
namespace Microsoft.AspNet.Mvc.Actions
namespace Microsoft.AspNet.Mvc.Infrastructure
{
/// <summary>
/// A <see cref="IAssemblyProvider"/> with a fixed set of candidate assemblies.

View File

@ -5,7 +5,8 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Controllers;
using Microsoft.AspNet.Mvc.Infrastructure;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.DependencyInjection.Extensions;

View File

@ -6,9 +6,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.Formatters;
using Microsoft.AspNet.Mvc.Infrastructure;
using Microsoft.AspNet.Mvc.Internal;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;

View File

@ -3,7 +3,6 @@
using System;
using System.Collections.Generic;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.Routing;
using Microsoft.AspNet.Mvc.ViewFeatures;

View File

@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.AspNet.Mvc.Routing;
using Microsoft.AspNet.Mvc.Infrastructure;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc

View File

@ -7,7 +7,8 @@ using System.Collections.Generic;
using System.ComponentModel;
#endif
using System.Diagnostics;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.AspNet.Mvc.Infrastructure;
using Microsoft.AspNet.Mvc.Internal.DecisionTree;
namespace Microsoft.AspNet.Mvc.Routing

View File

@ -2,8 +2,8 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.Infrastructure;
namespace Microsoft.AspNet.Mvc.Routing
{

View File

@ -5,8 +5,9 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Abstractions;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.Infrastructure;
using Microsoft.AspNet.Routing;
using Microsoft.AspNet.Routing.Template;
using Microsoft.Framework.Internal;

Some files were not shown because too many files have changed in this diff Show More