Reorganize MVC namespaces

This commit is contained in:
Ryan Nowak 2015-09-01 22:20:48 -07:00
parent a2e53e8d1a
commit 229724c4ea
589 changed files with 1019 additions and 660 deletions

View File

@ -5,6 +5,7 @@ using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNet.JsonPatch;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.ActionResults;
namespace MvcSample.Web.Controllers
{

View File

@ -3,6 +3,7 @@
using System;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.Filters;
namespace MvcSample.Web.Filters
{

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.
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.Filters;
namespace MvcSample.Web.Filters
{

View File

@ -3,7 +3,8 @@
using System;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.ActionResults;
using Microsoft.AspNet.Mvc.Filters;
namespace MvcSample.Web.Filters
{

View File

@ -1,7 +1,8 @@
// 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;
using Microsoft.AspNet.Mvc.ActionResults;
using Microsoft.AspNet.Mvc.Filters;
using Microsoft.Net.Http.Headers;
namespace MvcSample.Web

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.Security.Claims;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.Filters;
namespace MvcSample.Web
{

View File

@ -2,7 +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;
using Microsoft.AspNet.Mvc.ActionResults;
using Microsoft.AspNet.Mvc.Filters;
using MvcSample.Web.Models;
namespace MvcSample.Web.Filters

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.Threading.Tasks;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.Filters;
namespace MvcSample.Web
{

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.
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.Filters;
namespace MvcSample.Web.Filters
{

View File

@ -3,6 +3,8 @@
using System;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.ActionResults;
using Microsoft.AspNet.Mvc.Filters;
using MvcSample.Web.Filters;
using MvcSample.Web.Models;

View File

@ -4,6 +4,8 @@
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.ActionResults;
using Microsoft.AspNet.Mvc.Actions;
using MvcSample.Web.Models;
namespace MvcSample.Web.RandomNameSpace

View File

@ -8,6 +8,7 @@ using System.Threading.Tasks;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.ActionResults;
using Microsoft.AspNet.Mvc.Rendering;
using MvcSample.Web.Models;

View File

@ -4,6 +4,7 @@
using System;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.ActionConstraints;
using Microsoft.AspNet.Mvc.ActionResults;
using Microsoft.AspNet.Mvc.WebApiCompatShim;
using MvcSample.Web.Models;

View File

@ -4,6 +4,7 @@
using System.Diagnostics;
using System.Globalization;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.Filters;
namespace MvcSample.Web
{

View File

@ -2,6 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.ActionResults;
using TagHelperSample.Web.Services;
namespace TagHelperSample.Web.Controllers
@ -18,14 +19,14 @@ namespace TagHelperSample.Web.Controllers
// Sample exhibiting the use of nested cache tag helpers with custom user expiration triggers.
// Trigger expirations cascade, expiration of the inner tag helper's content either due to absolute or sliding
// expiration or due to a user specified expiration trigger would cause the outer cache tag helper to also expire.
public ViewResult Index()
public IActionResult Index()
{
ViewData["Title"] = "Movies";
return View();
}
[HttpPost]
public ViewResult UpdateMovieRatings()
public IActionResult UpdateMovieRatings()
{
_moviesService.UpdateMovieRating();
@ -34,7 +35,7 @@ namespace TagHelperSample.Web.Controllers
}
[HttpPost]
public ViewResult UpdateCriticsQuotes()
public IActionResult UpdateCriticsQuotes()
{
_moviesService.UpdateCriticsQuotes();

View File

@ -4,7 +4,7 @@
using System.Collections.Generic;
using Microsoft.AspNet.Routing;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionConstraints
{
/// <summary>
/// Context for <see cref="IActionConstraint"/> execution.

View File

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

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.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionConstraints
{
/// <summary>
/// A candidate action for action selection.

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
namespace Microsoft.AspNet.Mvc.ActionConstraints
{
/// <summary>
/// Supports conditional logic to determine whether or not an associated action is valid to be selected

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
namespace Microsoft.AspNet.Mvc.ActionConstraints
{
/// <summary>
/// A marker interface that identifies a type as metadata for an <see cref="IActionConstraint"/>.

View File

@ -2,6 +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.ModelBinding;
using Microsoft.AspNet.Routing;
using Microsoft.Framework.Internal;
@ -42,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="Mvc.ActionDescriptor"/> for the selected action.</param>
/// <param name="actionDescriptor">The <see cref="Actions.ActionDescriptor"/> for the selected action.</param>
public ActionContext(
[NotNull] HttpContext httpContext,
[NotNull] RouteData routeData,
@ -56,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="Mvc.ActionDescriptor"/> for the selected action.</param>
/// <param name="actionDescriptor">The <see cref="Actions.ActionDescriptor"/> for the selected action.</param>
/// <param name="modelState">The <see cref="ModelStateDictionary"/>.</param>
public ActionContext(
[NotNull] HttpContext httpContext,
@ -71,7 +72,7 @@ namespace Microsoft.AspNet.Mvc
}
/// <summary>
/// Gets or sets the <see cref="Mvc.ActionDescriptor"/> for the selected action.
/// Gets or sets the <see cref="Actions.ActionDescriptor"/> for the selected action.
/// </summary>
/// <remarks>
/// The property setter is provided for unit test purposes only.

View File

@ -3,9 +3,11 @@
using System;
using System.Collections.Generic;
using Microsoft.AspNet.Mvc.ActionConstraints;
using Microsoft.AspNet.Mvc.Filters;
using Microsoft.AspNet.Mvc.Routing;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Actions
{
public class ActionDescriptor
{

View File

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

View File

@ -3,7 +3,7 @@
using System;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Actions
{
/// <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
namespace Microsoft.AspNet.Mvc.Actions
{
public enum RouteKeyHandling
{

View File

@ -4,9 +4,10 @@
using System;
using System.Collections.Generic;
using System.Runtime.ExceptionServices;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
public class ActionExecutedContext : FilterContext
{

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.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
public class ActionExecutingContext : FilterContext
{

View File

@ -3,7 +3,7 @@
using System.Threading.Tasks;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
public delegate Task<ActionExecutedContext> ActionExecutionDelegate();
}

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.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
public class AuthorizationContext : FilterContext
{

View File

@ -4,9 +4,10 @@
using System;
using System.Collections.Generic;
using System.Runtime.ExceptionServices;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
public class ExceptionContext : FilterContext
{

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.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
public abstract class FilterContext : ActionContext
{

View File

@ -3,7 +3,7 @@
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
/// <summary>
/// Descriptor for an <see cref="IFilterMetadata"/>.

View File

@ -4,7 +4,7 @@
using System.Diagnostics;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
// Used to flow filters back from the FilterProviderContext
[DebuggerDisplay("FilterItem: {Filter}")]

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.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
public class FilterProviderContext
{

View File

@ -3,7 +3,7 @@
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
public interface IActionFilter : IFilterMetadata
{

View File

@ -4,7 +4,7 @@
using System.Threading.Tasks;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
public interface IAsyncActionFilter : IFilterMetadata
{

View File

@ -4,7 +4,7 @@
using System.Threading.Tasks;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
public interface IAsyncAuthorizationFilter : IFilterMetadata
{

View File

@ -4,7 +4,7 @@
using System.Threading.Tasks;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
public interface IAsyncExceptionFilter : IFilterMetadata
{

View File

@ -4,7 +4,7 @@
using System.Threading.Tasks;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
/// <summary>
/// A filter which surrounds execution of model binding, the action (and filters) and the action result

View File

@ -4,7 +4,7 @@
using System.Threading.Tasks;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
public interface IAsyncResultFilter : IFilterMetadata
{

View File

@ -3,7 +3,7 @@
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
public interface IAuthorizationFilter : IFilterMetadata
{

View File

@ -3,7 +3,7 @@
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
public interface IExceptionFilter : IFilterMetadata
{

View File

@ -4,7 +4,7 @@
using System;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
public interface IFilterFactory : IFilterMetadata
{

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
namespace Microsoft.AspNet.Mvc.Filters
{
public interface IFilterMetadata
{

View File

@ -3,7 +3,7 @@
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc.Core
namespace Microsoft.AspNet.Mvc.Filters
{
public interface IFilterProvider
{

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
namespace Microsoft.AspNet.Mvc.Filters
{
public interface IOrderedFilter : IFilterMetadata
{

View File

@ -3,7 +3,7 @@
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
/// <summary>
/// A filter which surrounds execution of model binding, the action (and filters) and the action result

View File

@ -3,7 +3,7 @@
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
public interface IResultFilter : IFilterMetadata
{

View File

@ -4,8 +4,9 @@
using System;
using System.Collections.Generic;
using System.Runtime.ExceptionServices;
using Microsoft.AspNet.Mvc.Actions;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
/// <summary>
/// A context for resource filters.

View File

@ -2,10 +2,12 @@
// 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;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
/// <summary>
/// A context for resource filters. Allows modification of services and values used for

View File

@ -3,7 +3,7 @@
using System.Threading.Tasks;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
/// <summary>
/// A delegate which asyncronously returns a <see cref="ResourceExecutedContext"/>.

View File

@ -4,9 +4,10 @@
using System;
using System.Collections.Generic;
using System.Runtime.ExceptionServices;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
public class ResultExecutedContext : FilterContext
{

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.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
public class ResultExecutingContext : FilterContext
{

View File

@ -3,7 +3,7 @@
using System.Threading.Tasks;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Filters
{
public delegate Task<ResultExecutedContext> ResultExecutionDelegate();
}

View File

@ -3,7 +3,7 @@
using System.Threading.Tasks;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Formatters
{
/// <summary>
/// Reads an object from the request body.

View File

@ -1,12 +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.
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Formatters
{
/// <summary>
/// Writes an object to the output stream.

View File

@ -6,7 +6,7 @@ using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.ModelBinding;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Formatters
{
/// <summary>
/// A context object used by an input formatter for deserializing the request body into an object.

View File

@ -6,7 +6,7 @@ using System.Text;
using Microsoft.AspNet.Http;
using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Formatters
{
/// <summary>
/// Represents information used by a formatter for participating in

View File

@ -2,6 +2,7 @@
// 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,6 +3,7 @@
using System.Collections.Generic;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.Formatters;
using Microsoft.AspNet.Mvc.ModelBinding.Validation;
namespace Microsoft.AspNet.Mvc.ModelBinding

View File

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

View File

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

View File

@ -2,6 +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.Framework.Internal;
namespace Microsoft.AspNet.Mvc.ApiExplorer

View File

@ -1,6 +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.
using Microsoft.AspNet.Mvc.Formatters;
using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNet.Mvc.ApiExplorer

View File

@ -6,6 +6,10 @@ using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.ActionConstraints;
using Microsoft.AspNet.Mvc.ActionResults;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Formatters;
using Microsoft.AspNet.Mvc.ModelBinding;
using Microsoft.AspNet.Routing;
using Microsoft.AspNet.Routing.Template;

View File

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

View File

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

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;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Routing;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionConstraints
{
/// <summary>
/// Base class for attributes which can implement conditional logic to enable or disable an action

View File

@ -8,7 +8,7 @@ using System.Linq;
using Microsoft.Framework.Internal;
using Microsoft.Framework.Primitives;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionConstraints
{
public class HttpMethodConstraint : IActionConstraint
{

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
namespace Microsoft.AspNet.Mvc.ActionConstraints
{
/// <summary>
/// An <see cref="IActionConstraint"/> constraint that identifies a type which can be used to select an action

View File

@ -2,6 +2,7 @@
// 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 @@ using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.ModelBinding;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
/// <summary>
/// An <see cref="ObjectResult"/> that when executed will produce a Bad Request (400) response.

View File

@ -3,7 +3,7 @@
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
/// <summary>
/// A <see cref="HttpStatusCodeResult"/> that when

View File

@ -4,9 +4,10 @@
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
namespace Microsoft.AspNet.Mvc.ActionResults
{
public class ChallengeResult : ActionResult
{

View File

@ -4,10 +4,12 @@
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Internal;
using Microsoft.Framework.Internal;
using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
public class ContentResult : ActionResult
{

View File

@ -4,12 +4,13 @@
using System;
using System.Collections.Generic;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;
using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
/// <summary>
/// An <see cref="ActionResult"/> that returns a Created (201) response with a Location header.

View File

@ -4,12 +4,13 @@
using System;
using System.Collections.Generic;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;
using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
/// <summary>
/// An <see cref="ActionResult"/> that returns a Created (201) response with a Location header.

View File

@ -3,10 +3,11 @@
using System;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;
using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
/// <summary>
/// An <see cref="ActionResult"/> that returns a Created (201) response with a Location header.

View File

@ -1,9 +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.
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
/// <summary>
/// Represents an <see cref="ActionResult"/> that when executed will

View File

@ -8,7 +8,7 @@ using Microsoft.AspNet.Http;
using Microsoft.Framework.Internal;
using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
/// <summary>
/// Represents an <see cref="ActionResult"/> that when executed will

View File

@ -1,15 +1,14 @@
// 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 System;
using System.Text;
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;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
/// <summary>
/// Represents an <see cref="ActionResult"/> that when executed will

View File

@ -9,7 +9,7 @@ using Microsoft.AspNet.Http;
using Microsoft.Framework.Internal;
using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
/// <summary>
/// Represents an <see cref="ActionResult"/> that when executed will

View File

@ -3,7 +3,7 @@
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
/// <summary>
/// An <see cref="ObjectResult"/> that when executed will produce a Not Found (404) response.

View File

@ -3,7 +3,7 @@
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
/// <summary>
/// Represents an <see cref="HttpStatusCodeResult"/> that when

View File

@ -3,7 +3,7 @@
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
/// <summary>
/// An <see cref="ObjectResult"/> that when executed performs content negotiation, formats the entity body, and

View File

@ -3,7 +3,7 @@
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
/// <summary>
/// An <see cref="HttpStatusCodeResult"/> that when executed will produce an empty

View File

@ -1,9 +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.
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
/// <summary>
/// Represents an <see cref="ActionResult"/> that when executed will

View File

@ -3,7 +3,7 @@
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
/// <summary>
/// Represents an <see cref="HttpUnauthorizedResult"/> that when

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
namespace Microsoft.AspNet.Mvc.ActionResults
{
/// <summary>
/// A marker interface for <see cref="IActionResult"/> types which need to have temp data saved.

View File

@ -3,7 +3,7 @@
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
public class NoContentResult : HttpStatusCodeResult
{

View File

@ -6,14 +6,17 @@ 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.Internal;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;
using Microsoft.Framework.Logging;
using Microsoft.Framework.OptionsModel;
using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
public class ObjectResult : ActionResult
{

View File

@ -10,7 +10,7 @@ using Microsoft.AspNet.Mvc.Core;
using Microsoft.Framework.Internal;
using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
/// <summary>
/// A <see cref="FileResult"/> on execution will write a file from disk to the response

View File

@ -2,11 +2,12 @@
// 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.Framework.DependencyInjection;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
public class RedirectResult : ActionResult, IKeepTempDataResult
{

View File

@ -3,11 +3,12 @@
using System;
using System.Collections.Generic;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
public class RedirectToActionResult : ActionResult, IKeepTempDataResult
{

View File

@ -3,11 +3,12 @@
using System;
using System.Collections.Generic;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.ActionResults
{
public class RedirectToRouteResult : ActionResult, IKeepTempDataResult
{

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