Navigation Menu

Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
Move ActionResult classes back to main namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
rynowak committed Sep 17, 2015
1 parent 1c4614c commit 046cb97
Show file tree
Hide file tree
Showing 172 changed files with 83 additions and 186 deletions.
1 change: 0 additions & 1 deletion samples/MvcSample.Web/Controllers/JsonPatchController.cs
Expand Up @@ -5,7 +5,6 @@
using System.Linq;
using Microsoft.AspNet.JsonPatch;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.ActionResults;

namespace MvcSample.Web.Controllers
{
Expand Down
2 changes: 1 addition & 1 deletion samples/MvcSample.Web/Filters/DelayAttribute.cs
Expand Up @@ -3,7 +3,7 @@

using System;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.ActionResults;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.Filters;

namespace MvcSample.Web.Filters
Expand Down
2 changes: 1 addition & 1 deletion samples/MvcSample.Web/Filters/ErrorMessagesAttribute.cs
@@ -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.ActionResults;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.Filters;
using Microsoft.Net.Http.Headers;

Expand Down
Expand Up @@ -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.ActionResults;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.Filters;
using MvcSample.Web.Models;

Expand Down
1 change: 0 additions & 1 deletion samples/MvcSample.Web/FiltersController.cs
Expand Up @@ -3,7 +3,6 @@

using System;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.ActionResults;
using Microsoft.AspNet.Mvc.Filters;
using MvcSample.Web.Filters;
using MvcSample.Web.Models;
Expand Down
2 changes: 0 additions & 2 deletions samples/MvcSample.Web/Home2Controller.cs
Expand Up @@ -4,8 +4,6 @@
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
Expand Down
1 change: 0 additions & 1 deletion samples/MvcSample.Web/HomeController.cs
Expand Up @@ -8,7 +8,6 @@
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;

Expand Down
1 change: 0 additions & 1 deletion samples/MvcSample.Web/OverloadController.cs
Expand Up @@ -4,7 +4,6 @@
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;

Expand Down
Expand Up @@ -2,7 +2,6 @@
// 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
Expand Down
Expand Up @@ -7,7 +7,6 @@
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;
Expand Down
Expand Up @@ -7,7 +7,6 @@
using System.Diagnostics.Tracing;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.ActionResults;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.Filters;
using Microsoft.AspNet.Mvc.Formatters;
Expand Down
Expand Up @@ -8,7 +8,6 @@
using System.Linq;
using System.Runtime.ExceptionServices;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.ActionResults;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.Filters;
using Microsoft.AspNet.Mvc.Formatters;
Expand Down
Expand Up @@ -5,7 +5,7 @@
using Microsoft.AspNet.Mvc.ModelBinding;
using Microsoft.Framework.Internal;

namespace Microsoft.AspNet.Mvc.ActionResults
namespace Microsoft.AspNet.Mvc
{
/// <summary>
/// An <see cref="ObjectResult"/> that when executed will produce a Bad Request (400) response.
Expand Down
Expand Up @@ -3,7 +3,7 @@

using Microsoft.AspNet.Http;

namespace Microsoft.AspNet.Mvc.ActionResults
namespace Microsoft.AspNet.Mvc
{
/// <summary>
/// A <see cref="HttpStatusCodeResult"/> that when
Expand Down
Expand Up @@ -7,7 +7,7 @@
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;

namespace Microsoft.AspNet.Mvc.ActionResults
namespace Microsoft.AspNet.Mvc
{
public class ChallengeResult : ActionResult
{
Expand Down
1 change: 0 additions & 1 deletion src/Microsoft.AspNet.Mvc.Core/ConsumesAttribute.cs
Expand Up @@ -5,7 +5,6 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNet.Mvc.ActionConstraints;
using Microsoft.AspNet.Mvc.ActionResults;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.Filters;
Expand Down
Expand Up @@ -9,7 +9,7 @@
using Microsoft.Framework.Internal;
using Microsoft.Net.Http.Headers;

namespace Microsoft.AspNet.Mvc.ActionResults
namespace Microsoft.AspNet.Mvc
{
public class ContentResult : ActionResult
{
Expand Down
Expand Up @@ -10,7 +10,7 @@
using Microsoft.Framework.Internal;
using Microsoft.Net.Http.Headers;

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

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

namespace Microsoft.AspNet.Mvc.ActionResults
namespace Microsoft.AspNet.Mvc
{
/// <summary>
/// An <see cref="ActionResult"/> that returns a Created (201) response with a Location header.
Expand Down
Expand Up @@ -4,7 +4,7 @@
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;

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

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

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

namespace Microsoft.AspNet.Mvc.ActionResults
namespace Microsoft.AspNet.Mvc
{
/// <summary>
/// Represents an <see cref="ActionResult"/> that when executed will
Expand Down
Expand Up @@ -4,7 +4,6 @@
using System;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.ActionResults;
using Microsoft.AspNet.Mvc.Internal;
using Microsoft.Framework.Internal;

Expand Down
1 change: 0 additions & 1 deletion src/Microsoft.AspNet.Mvc.Core/Filters/AuthorizeFilter.cs
Expand Up @@ -5,7 +5,6 @@
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Authorization;
using Microsoft.AspNet.Mvc.ActionResults;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;

Expand Down
1 change: 0 additions & 1 deletion src/Microsoft.AspNet.Mvc.Core/Formatters/FormatFilter.cs
Expand Up @@ -3,7 +3,6 @@

using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNet.Mvc.ActionResults;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.ApiExplorer;
using Microsoft.AspNet.Mvc.Filters;
Expand Down
Expand Up @@ -3,7 +3,7 @@

using Microsoft.AspNet.Http;

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

using Microsoft.AspNet.Http;

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

using Microsoft.AspNet.Http;

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

using Microsoft.AspNet.Http;

namespace Microsoft.AspNet.Mvc.ActionResults
namespace Microsoft.AspNet.Mvc
{
/// <summary>
/// An <see cref="HttpStatusCodeResult"/> that when executed will produce an empty
Expand Down
Expand Up @@ -4,7 +4,7 @@
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.Framework.Internal;

namespace Microsoft.AspNet.Mvc.ActionResults
namespace Microsoft.AspNet.Mvc
{
/// <summary>
/// Represents an <see cref="ActionResult"/> that when executed will
Expand Down
Expand Up @@ -3,7 +3,7 @@

using Microsoft.AspNet.Http;

namespace Microsoft.AspNet.Mvc.ActionResults
namespace Microsoft.AspNet.Mvc
{
/// <summary>
/// Represents an <see cref="HttpUnauthorizedResult"/> that when
Expand Down
@@ -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.ActionResults
namespace Microsoft.AspNet.Mvc
{
/// <summary>
/// A marker interface for <see cref="IActionResult"/> types which need to have temp data saved.
Expand Down
Expand Up @@ -3,7 +3,7 @@

using Microsoft.AspNet.Http;

namespace Microsoft.AspNet.Mvc.ActionResults
namespace Microsoft.AspNet.Mvc
{
public class NoContentResult : HttpStatusCodeResult
{
Expand Down
Expand Up @@ -16,7 +16,7 @@
using Microsoft.Framework.OptionsModel;
using Microsoft.Net.Http.Headers;

namespace Microsoft.AspNet.Mvc.ActionResults
namespace Microsoft.AspNet.Mvc
{
public class ObjectResult : ActionResult
{
Expand Down
Expand Up @@ -10,7 +10,7 @@
using Microsoft.Framework.Internal;
using Microsoft.Net.Http.Headers;

namespace Microsoft.AspNet.Mvc.ActionResults
namespace Microsoft.AspNet.Mvc
{
/// <summary>
/// A <see cref="FileResult"/> on execution will write a file from disk to the response
Expand Down
1 change: 0 additions & 1 deletion src/Microsoft.AspNet.Mvc.Core/ProducesAttribute.cs
Expand Up @@ -4,7 +4,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNet.Mvc.ActionResults;
using Microsoft.AspNet.Mvc.ApiExplorer;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.Filters;
Expand Down
Expand Up @@ -2,12 +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.Actions;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;

namespace Microsoft.AspNet.Mvc.ActionResults
namespace Microsoft.AspNet.Mvc
{
public class RedirectResult : ActionResult, IKeepTempDataResult
{
Expand Down
Expand Up @@ -8,7 +8,7 @@
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;

namespace Microsoft.AspNet.Mvc.ActionResults
namespace Microsoft.AspNet.Mvc
{
public class RedirectToActionResult : ActionResult, IKeepTempDataResult
{
Expand Down
Expand Up @@ -8,7 +8,7 @@
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;

namespace Microsoft.AspNet.Mvc.ActionResults
namespace Microsoft.AspNet.Mvc
{
public class RedirectToRouteResult : ActionResult, IKeepTempDataResult
{
Expand Down
1 change: 0 additions & 1 deletion src/Microsoft.AspNet.Mvc.Core/RequireHttpsAttribute.cs
Expand Up @@ -3,7 +3,6 @@

using System;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.ActionResults;
using Microsoft.AspNet.Mvc.Filters;
using Microsoft.Framework.Internal;

Expand Down
Expand Up @@ -3,7 +3,7 @@

using Microsoft.AspNet.Http;

namespace Microsoft.AspNet.Mvc.ActionResults
namespace Microsoft.AspNet.Mvc
{
/// <summary>
/// A <see cref="HttpStatusCodeResult"/> that when
Expand Down
Expand Up @@ -14,7 +14,7 @@
using Microsoft.Framework.Internal;
using Microsoft.Net.Http.Headers;

namespace Microsoft.AspNet.Mvc.ActionResults
namespace Microsoft.AspNet.Mvc
{
/// <summary>
/// A <see cref="FileResult" /> that on execution writes the file specified using a virtual path to the response
Expand Down
2 changes: 0 additions & 2 deletions src/Microsoft.AspNet.Mvc.Cors/CorsAuthorizationFilter.cs
Expand Up @@ -5,10 +5,8 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Authorization;
using Microsoft.AspNet.Cors.Core;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.ActionResults;
using Microsoft.AspNet.Mvc.Filters;
using Microsoft.Framework.Internal;
using Microsoft.Framework.Primitives;
Expand Down

0 comments on commit 046cb97

Please sign in to comment.