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

Commit

Permalink
Move less-commonly used types out of .Rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
rynowak committed Sep 17, 2015
1 parent 046cb97 commit 538cd9c
Show file tree
Hide file tree
Showing 224 changed files with 341 additions and 186 deletions.
2 changes: 1 addition & 1 deletion src/Microsoft.AspNet.Mvc.Core/CreatedAtActionResult.cs
Expand Up @@ -4,8 +4,8 @@
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;
using Microsoft.Framework.Internal;
using Microsoft.Net.Http.Headers;
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.AspNet.Mvc.Core/CreatedAtRouteResult.cs
Expand Up @@ -6,6 +6,7 @@
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.Routing;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;
using Microsoft.Net.Http.Headers;
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.AspNet.Mvc.Core/IUrlHelper.cs
@@ -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.Routing;
using Microsoft.Framework.Internal;

namespace Microsoft.AspNet.Mvc
Expand Down
Expand Up @@ -9,7 +9,7 @@
using Microsoft.AspNet.Mvc.ModelBinding.Validation;
using Microsoft.Framework.OptionsModel;

namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Internal
{
/// <summary>
/// Sets up default options for <see cref="MvcOptions"/>.
Expand Down
Expand Up @@ -5,7 +5,7 @@
using Microsoft.AspNet.Routing;
using Microsoft.Framework.OptionsModel;

namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Internal
{
/// <summary>
/// Sets up MVC default options for <see cref="RouteOptions"/>.
Expand Down
2 changes: 2 additions & 0 deletions src/Microsoft.AspNet.Mvc.Core/RedirectResult.cs
Expand Up @@ -3,6 +3,8 @@

using System;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.Routing;
using Microsoft.AspNet.Mvc.ViewFeatures;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;

Expand Down
2 changes: 2 additions & 0 deletions src/Microsoft.AspNet.Mvc.Core/RedirectToActionResult.cs
Expand Up @@ -5,6 +5,8 @@
using System.Collections.Generic;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.Mvc.Routing;
using Microsoft.AspNet.Mvc.ViewFeatures;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;

Expand Down
3 changes: 2 additions & 1 deletion src/Microsoft.AspNet.Mvc.Core/RedirectToRouteResult.cs
Expand Up @@ -3,8 +3,9 @@

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;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;

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
namespace Microsoft.AspNet.Mvc.Routing
{
/// <summary>
/// Context object to be used for the URLs that <see cref="IUrlHelper.Action(UrlActionContext)"/> generates.
Expand Down
Expand Up @@ -9,7 +9,7 @@
using Microsoft.AspNet.Routing;
using Microsoft.Framework.Internal;

namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Routing
{
/// <summary>
/// An implementation of <see cref="IUrlHelper"/> that contains methods to
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
namespace Microsoft.AspNet.Mvc.Routing
{
/// <summary>
/// Context object to be used for the URLs that <see cref="IUrlHelper.RouteUrl(UrlRouteContext)"/> generates.
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.AspNet.Mvc.Core/UrlHelperExtensions.cs
@@ -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.Routing;
using Microsoft.Framework.Internal;

namespace Microsoft.AspNet.Mvc
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
namespace Microsoft.AspNet.Mvc.ViewFeatures
{
/// <summary>
/// A marker interface for <see cref="IActionResult"/> types which need to have temp data saved.
Expand Down
Expand Up @@ -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.DataAnnotations.Internal;
using Microsoft.Framework.DependencyInjection.Extensions;
using Microsoft.Framework.Internal;
using Microsoft.Framework.OptionsModel;
Expand Down
Expand Up @@ -5,7 +5,7 @@
using Microsoft.AspNet.Mvc.ModelBinding.Validation;
using Microsoft.Framework.OptionsModel;

namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.DataAnnotations.Internal
{
/// <summary>
/// Sets up default options for <see cref="MvcOptions"/>.
Expand Down
Expand Up @@ -3,6 +3,7 @@

using System;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.Formatters.Json.Internal;
using Microsoft.Framework.DependencyInjection.Extensions;
using Microsoft.Framework.Internal;
using Microsoft.Framework.OptionsModel;
Expand Down
@@ -1,13 +1,12 @@
// 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.Framework.OptionsModel;
using Microsoft.Net.Http.Headers;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Formatters.Json.Internal
{
public class MvcJsonMvcOptionsSetup : ConfigureOptions<MvcOptions>
{
Expand Down
Expand Up @@ -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.Formatters.Xml.Internal;
using Microsoft.Framework.DependencyInjection.Extensions;
using Microsoft.Framework.Internal;
using Microsoft.Framework.OptionsModel;
Expand Down
Expand Up @@ -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.Formatters.Xml.Internal;
using Microsoft.Framework.DependencyInjection.Extensions;
using Microsoft.Framework.Internal;
using Microsoft.Framework.OptionsModel;
Expand Down
@@ -1,11 +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.Formatters;
using Microsoft.AspNet.Mvc.ModelBinding.Metadata;
using Microsoft.Framework.OptionsModel;

namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Formatters.Xml.Internal
{
/// <summary>
/// A <see cref="ConfigureOptions{TOptions}"/> implementation which will add the
Expand Down
@@ -1,10 +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.

using Microsoft.AspNet.Mvc.Formatters;
using Microsoft.Framework.OptionsModel;

namespace Microsoft.AspNet.Mvc
namespace Microsoft.AspNet.Mvc.Formatters.Xml.Internal
{
/// <summary>
/// A <see cref="ConfigureOptions{TOptions}"/> implementation which will add the
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.AspNet.Mvc.Localization/ViewLocalizer.cs
Expand Up @@ -4,6 +4,7 @@
using System.Collections.Generic;
using System.Globalization;
using Microsoft.AspNet.Mvc.Rendering;
using Microsoft.AspNet.Mvc.ViewFeatures.Internal;
using Microsoft.Framework.Internal;
using Microsoft.Framework.Localization;
using Microsoft.Dnx.Runtime;
Expand Down
Expand Up @@ -6,6 +6,7 @@
using System.Collections.Generic;
using System.Reflection;
using Microsoft.AspNet.Mvc.Rendering;
using Microsoft.AspNet.Mvc.ViewFeatures;
using Microsoft.AspNet.Razor.Runtime.TagHelpers;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;
Expand Down
Expand Up @@ -7,6 +7,7 @@
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Mvc.Razor;
using Microsoft.AspNet.Mvc.Razor.Compilation;
using Microsoft.AspNet.Mvc.Rendering;
using Microsoft.AspNet.Razor.Runtime.TagHelpers;
using Microsoft.Framework.DependencyInjection.Extensions;
using Microsoft.Framework.Internal;
Expand Down Expand Up @@ -55,17 +56,17 @@ public static class MvcRazorMvcBuilderExtensions
return builder;
}

public static IMvcBuilder AddPrecompiledRazorViews(
[NotNull] this IMvcBuilder builder,
[NotNull] params Assembly[] assemblies)
{
builder.Services.Replace(
ServiceDescriptor.Singleton<ICompilerCacheProvider>(serviceProvider =>
ActivatorUtilities.CreateInstance<PrecompiledViewsCompilerCacheProvider>(
serviceProvider,
assemblies.AsEnumerable())));
return builder;
}
public static IMvcBuilder AddPrecompiledRazorViews(
[NotNull] this IMvcBuilder builder,
[NotNull] params Assembly[] assemblies)
{
builder.Services.Replace(
ServiceDescriptor.Singleton<ICompilerCacheProvider>(serviceProvider =>
ActivatorUtilities.CreateInstance<PrecompiledViewsCompilerCacheProvider>(
serviceProvider,
assemblies.AsEnumerable())));

return builder;
}
}
}
Expand Up @@ -8,6 +8,8 @@
using Microsoft.AspNet.Mvc.Razor;
using Microsoft.AspNet.Mvc.Razor.Compilation;
using Microsoft.AspNet.Mvc.Razor.Directives;
using Microsoft.AspNet.Mvc.Razor.Internal;
using Microsoft.AspNet.Mvc.Rendering;
using Microsoft.AspNet.Razor.Runtime.TagHelpers;
using Microsoft.Framework.Caching.Memory;
using Microsoft.Framework.DependencyInjection.Extensions;
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.AspNet.Mvc.Razor/IRazorPage.cs
Expand Up @@ -5,6 +5,7 @@
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.Rendering;
using Microsoft.AspNet.PageExecutionInstrumentation;

namespace Microsoft.AspNet.Mvc.Razor
Expand Down
2 changes: 2 additions & 0 deletions src/Microsoft.AspNet.Mvc.Razor/IRazorPageActivator.cs
@@ -1,6 +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.Rendering;

namespace Microsoft.AspNet.Mvc.Razor
{
/// <summary>
Expand Down
3 changes: 1 addition & 2 deletions src/Microsoft.AspNet.Mvc.Razor/IRazorViewEngine.cs
@@ -1,8 +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.Actions;
using Microsoft.AspNet.Mvc.Rendering;
using Microsoft.AspNet.Mvc.ViewEngines;

namespace Microsoft.AspNet.Mvc.Razor
{
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.AspNet.Mvc.Razor/IRazorViewFactory.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.Rendering;
using Microsoft.AspNet.Mvc.ViewEngines;
using Microsoft.Framework.Internal;

namespace Microsoft.AspNet.Mvc.Razor
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.AspNet.Mvc.Razor/ITagHelperActivator.cs
@@ -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.Rendering;
using Microsoft.AspNet.Razor.Runtime.TagHelpers;

namespace Microsoft.AspNet.Mvc.Razor
Expand Down
Expand Up @@ -6,7 +6,7 @@
using Microsoft.Framework.Internal;
using Microsoft.Framework.OptionsModel;

namespace Microsoft.AspNet.Mvc.Razor
namespace Microsoft.AspNet.Mvc.Razor.Internal
{
/// <summary>
/// Configures <see cref="MvcViewOptions"/> to use <see cref="RazorViewEngine"/>.
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.AspNet.Mvc.Razor/RazorPage.cs
Expand Up @@ -14,6 +14,7 @@
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Razor.Internal;
using Microsoft.AspNet.Mvc.Rendering;
using Microsoft.AspNet.Mvc.Routing;
using Microsoft.AspNet.Mvc.ViewFeatures;
using Microsoft.AspNet.PageExecutionInstrumentation;
using Microsoft.AspNet.Razor.Runtime.TagHelpers;
Expand Down
2 changes: 2 additions & 0 deletions src/Microsoft.AspNet.Mvc.Razor/RazorPageActivator.cs
Expand Up @@ -7,6 +7,8 @@
using Microsoft.AspNet.Mvc.ModelBinding;
using Microsoft.AspNet.Mvc.Razor.Internal;
using Microsoft.AspNet.Mvc.Rendering;
using Microsoft.AspNet.Mvc.ViewFeatures;
using Microsoft.AspNet.Mvc.ViewFeatures.Internal;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;

Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.AspNet.Mvc.Razor/RazorPageOfT.cs
Expand Up @@ -6,7 +6,7 @@
using Microsoft.AspNet.Mvc.ModelBinding;
using Microsoft.AspNet.Mvc.Razor.Internal;
using Microsoft.AspNet.Mvc.Rendering;
using Microsoft.AspNet.Mvc.Rendering.Expressions;
using Microsoft.AspNet.Mvc.ViewFeatures;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Internal;

Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.AspNet.Mvc.Razor/RazorView.cs
Expand Up @@ -8,6 +8,7 @@
using System.Threading.Tasks;
using Microsoft.AspNet.Http.Features;
using Microsoft.AspNet.Mvc.Rendering;
using Microsoft.AspNet.Mvc.ViewEngines;
using Microsoft.AspNet.PageExecutionInstrumentation;
using Microsoft.Framework.Internal;
using Microsoft.Framework.WebEncoders;
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.AspNet.Mvc.Razor/RazorViewEngine.cs
Expand Up @@ -8,6 +8,7 @@
using System.Linq;
using Microsoft.AspNet.Mvc.Actions;
using Microsoft.AspNet.Mvc.Rendering;
using Microsoft.AspNet.Mvc.ViewEngines;
using Microsoft.Framework.Internal;
using Microsoft.Framework.OptionsModel;

Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.AspNet.Mvc.Razor/RazorViewFactory.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.Rendering;
using Microsoft.AspNet.Mvc.ViewEngines;
using Microsoft.Framework.Internal;
using Microsoft.Framework.WebEncoders;

Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.AspNet.Mvc.Razor/TagHelperInitializerOfT.cs
Expand Up @@ -2,6 +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.Rendering;
using Microsoft.AspNet.Razor.Runtime.TagHelpers;
using Microsoft.Framework.Internal;

Expand Down
Expand Up @@ -6,6 +6,7 @@
using System.ComponentModel;
using System.Reflection;
using Microsoft.AspNet.Mvc.Rendering;
using Microsoft.AspNet.Mvc.Routing;
using Microsoft.AspNet.Razor.Runtime.TagHelpers;
using Microsoft.Framework.WebEncoders;

Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.AspNet.Mvc.TagHelpers/AnchorTagHelper.cs
Expand Up @@ -5,6 +5,7 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNet.Mvc.Rendering;
using Microsoft.AspNet.Mvc.ViewFeatures;
using Microsoft.AspNet.Razor.Runtime.TagHelpers;

namespace Microsoft.AspNet.Mvc.TagHelpers
Expand Down
2 changes: 2 additions & 0 deletions src/Microsoft.AspNet.Mvc.TagHelpers/CacheTagHelper.cs
Expand Up @@ -8,6 +8,8 @@
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.Rendering;
using Microsoft.AspNet.Mvc.ViewFeatures;
using Microsoft.AspNet.Razor.Runtime.TagHelpers;
using Microsoft.Framework.Caching.Memory;

Expand Down

0 comments on commit 538cd9c

Please sign in to comment.