From 076dedcca560c81f98f8961ce7b8dbae1f50b662 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Tue, 6 May 2014 12:53:26 -0700 Subject: [PATCH] Reacting to package and namespace changes --- samples/MvcSample.Web/Startup.cs | 2 +- samples/MvcSample.Web/project.json | 2 +- src/Microsoft.AspNet.Mvc.Core/ActionInvokerFactory.cs | 2 +- .../ActionResults/RedirectResult.cs | 2 -- src/Microsoft.AspNet.Mvc.Core/ActionResults/ViewResult.cs | 1 - src/Microsoft.AspNet.Mvc.Core/DefaultActionSelector.cs | 2 +- src/Microsoft.AspNet.Mvc.Core/DefaultControllerFactory.cs | 3 +-- .../Filters/AuthorizeAttribute.cs | 2 +- .../Filters/DefaultFilterProvider.cs | 2 +- .../Filters/TypeFilterAttribute.cs | 2 +- src/Microsoft.AspNet.Mvc.Core/IActionDescriptorProvider.cs | 2 +- src/Microsoft.AspNet.Mvc.Core/IActionInvokerProvider.cs | 2 +- src/Microsoft.AspNet.Mvc.Core/Injector.cs | 2 +- src/Microsoft.AspNet.Mvc.Core/MvcRouteHandler.cs | 2 +- src/Microsoft.AspNet.Mvc.Core/ReflectedActionInvoker.cs | 2 +- .../ReflectedActionInvokerProvider.cs | 2 +- .../Rendering/Html/DefaultDisplayTemplates.cs | 2 +- .../Rendering/Html/DefaultEditorTemplates.cs | 2 +- .../Rendering/Html/TemplateRenderer.cs | 2 +- src/Microsoft.AspNet.Mvc.Core/UrlHelper.cs | 2 +- .../ViewComponents/DefaultViewComponentInvoker.cs | 2 +- .../ViewComponents/DefaultViewComponentInvokerFactory.cs | 2 +- .../ViewComponents/IViewComponentInvokerProvider.cs | 2 +- src/Microsoft.AspNet.Mvc.Core/project.json | 2 +- .../Binders/GenericModelBinder.cs | 2 +- src/Microsoft.AspNet.Mvc.ModelBinding/project.json | 2 +- src/Microsoft.AspNet.Mvc.Razor.Host/project.json | 2 +- src/Microsoft.AspNet.Mvc.Razor/RazorView.cs | 3 +-- src/Microsoft.AspNet.Mvc.Razor/RazorViewOfT.cs | 2 +- src/Microsoft.AspNet.Mvc.Razor/project.json | 2 +- src/Microsoft.AspNet.Mvc/BuilderExtensions.cs | 4 +--- src/Microsoft.AspNet.Mvc/MvcServices.cs | 6 +++--- src/Microsoft.AspNet.Mvc/ServiceCollectionExtensions.cs | 4 ++-- src/Microsoft.AspNet.Mvc/project.json | 2 +- .../Microsoft.AspNet.Mvc.Core.Test/ActionAttributeTests.cs | 6 +++--- .../ActionSelectionConventionTests.cs | 6 +++--- .../DefaultActionSelectorTest.cs | 2 +- .../DefaultControllerFactoryTest.cs | 6 +----- .../Filters/AuthorizeAttributeTests.cs | 4 +--- .../Filters/AuthorizeAttributeTestsBase.cs | 7 ++----- .../ReflectedActionInvokerTest.cs | 5 ++--- test/Microsoft.AspNet.Mvc.Core.Test/UrlHelperTest.cs | 2 +- test/Microsoft.AspNet.Mvc.Core.Test/project.json | 3 +-- .../Binders/CompositeModelBinderTest.cs | 3 +-- test/Microsoft.AspNet.Mvc.ModelBinding.Test/project.json | 2 +- 45 files changed, 52 insertions(+), 71 deletions(-) diff --git a/samples/MvcSample.Web/Startup.cs b/samples/MvcSample.Web/Startup.cs index e288037536..0fcb86280f 100644 --- a/samples/MvcSample.Web/Startup.cs +++ b/samples/MvcSample.Web/Startup.cs @@ -16,10 +16,10 @@ // permissions and limitations under the License. using Microsoft.AspNet; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Builder; using Microsoft.AspNet.Mvc; using Microsoft.AspNet.Routing; +using Microsoft.Framework.DependencyInjection; using MvcSample.Web.Filters; namespace MvcSample.Web diff --git a/samples/MvcSample.Web/project.json b/samples/MvcSample.Web/project.json index de88eb7712..d5702bb934 100644 --- a/samples/MvcSample.Web/project.json +++ b/samples/MvcSample.Web/project.json @@ -7,7 +7,7 @@ "Helios": "0.1-alpha-*", "Microsoft.AspNet.Http": "0.1-alpha-*", "Microsoft.Framework.ConfigurationModel": "0.1-alpha-*", - "Microsoft.AspNet.DependencyInjection": "0.1-alpha-*", + "Microsoft.Framework.DependencyInjection": "0.1-alpha-*", "Microsoft.AspNet.Routing": "0.1-alpha-*", "Microsoft.AspNet.Server.WebListener": "0.1-alpha-*", "Microsoft.ComponentModel.DataAnnotations": "0.1-alpha-*", diff --git a/src/Microsoft.AspNet.Mvc.Core/ActionInvokerFactory.cs b/src/Microsoft.AspNet.Mvc.Core/ActionInvokerFactory.cs index 06833d7f09..4c5466b2a6 100644 --- a/src/Microsoft.AspNet.Mvc.Core/ActionInvokerFactory.cs +++ b/src/Microsoft.AspNet.Mvc.Core/ActionInvokerFactory.cs @@ -15,7 +15,7 @@ // See the Apache 2 License for the specific language governing // permissions and limitations under the License. -using Microsoft.AspNet.DependencyInjection; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc { diff --git a/src/Microsoft.AspNet.Mvc.Core/ActionResults/RedirectResult.cs b/src/Microsoft.AspNet.Mvc.Core/ActionResults/RedirectResult.cs index e647611e02..f9a79e0897 100644 --- a/src/Microsoft.AspNet.Mvc.Core/ActionResults/RedirectResult.cs +++ b/src/Microsoft.AspNet.Mvc.Core/ActionResults/RedirectResult.cs @@ -16,8 +16,6 @@ // permissions and limitations under the License. using System; -using System.Threading.Tasks; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Mvc.Core; namespace Microsoft.AspNet.Mvc diff --git a/src/Microsoft.AspNet.Mvc.Core/ActionResults/ViewResult.cs b/src/Microsoft.AspNet.Mvc.Core/ActionResults/ViewResult.cs index 90e387d5c2..8d1787ebc6 100644 --- a/src/Microsoft.AspNet.Mvc.Core/ActionResults/ViewResult.cs +++ b/src/Microsoft.AspNet.Mvc.Core/ActionResults/ViewResult.cs @@ -20,7 +20,6 @@ using System.Collections.Generic; using System.IO; using System.Text; using System.Threading.Tasks; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Mvc.Core; using Microsoft.AspNet.Mvc.Rendering; diff --git a/src/Microsoft.AspNet.Mvc.Core/DefaultActionSelector.cs b/src/Microsoft.AspNet.Mvc.Core/DefaultActionSelector.cs index 2cc3eacffb..54c0f8c29a 100644 --- a/src/Microsoft.AspNet.Mvc.Core/DefaultActionSelector.cs +++ b/src/Microsoft.AspNet.Mvc.Core/DefaultActionSelector.cs @@ -20,9 +20,9 @@ using System.Collections.Generic; using System.Diagnostics.Contracts; using System.Linq; using System.Threading.Tasks; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Mvc.Core; using Microsoft.AspNet.Routing; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc { diff --git a/src/Microsoft.AspNet.Mvc.Core/DefaultControllerFactory.cs b/src/Microsoft.AspNet.Mvc.Core/DefaultControllerFactory.cs index ce00c3ec67..115dac1618 100644 --- a/src/Microsoft.AspNet.Mvc.Core/DefaultControllerFactory.cs +++ b/src/Microsoft.AspNet.Mvc.Core/DefaultControllerFactory.cs @@ -16,10 +16,9 @@ // permissions and limitations under the License. using System; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Mvc.Core; using Microsoft.AspNet.Mvc.ModelBinding; -using Microsoft.AspNet.Mvc.Rendering; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc { diff --git a/src/Microsoft.AspNet.Mvc.Core/Filters/AuthorizeAttribute.cs b/src/Microsoft.AspNet.Mvc.Core/Filters/AuthorizeAttribute.cs index d10d673447..975c73ec1b 100644 --- a/src/Microsoft.AspNet.Mvc.Core/Filters/AuthorizeAttribute.cs +++ b/src/Microsoft.AspNet.Mvc.Core/Filters/AuthorizeAttribute.cs @@ -21,8 +21,8 @@ using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNet.Mvc.Core; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Security; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc { diff --git a/src/Microsoft.AspNet.Mvc.Core/Filters/DefaultFilterProvider.cs b/src/Microsoft.AspNet.Mvc.Core/Filters/DefaultFilterProvider.cs index 62eee1473c..fd2ccb7dd8 100644 --- a/src/Microsoft.AspNet.Mvc.Core/Filters/DefaultFilterProvider.cs +++ b/src/Microsoft.AspNet.Mvc.Core/Filters/DefaultFilterProvider.cs @@ -17,8 +17,8 @@ using System; using System.Diagnostics.Contracts; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Mvc.Core; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc.Filters { diff --git a/src/Microsoft.AspNet.Mvc.Core/Filters/TypeFilterAttribute.cs b/src/Microsoft.AspNet.Mvc.Core/Filters/TypeFilterAttribute.cs index 404c72dbab..ff416fce37 100644 --- a/src/Microsoft.AspNet.Mvc.Core/Filters/TypeFilterAttribute.cs +++ b/src/Microsoft.AspNet.Mvc.Core/Filters/TypeFilterAttribute.cs @@ -17,8 +17,8 @@ using System; using System.Diagnostics; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Mvc.Core; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc { diff --git a/src/Microsoft.AspNet.Mvc.Core/IActionDescriptorProvider.cs b/src/Microsoft.AspNet.Mvc.Core/IActionDescriptorProvider.cs index 0518aa4af2..4b2a7219cb 100644 --- a/src/Microsoft.AspNet.Mvc.Core/IActionDescriptorProvider.cs +++ b/src/Microsoft.AspNet.Mvc.Core/IActionDescriptorProvider.cs @@ -15,7 +15,7 @@ // See the Apache 2 License for the specific language governing // permissions and limitations under the License. -using Microsoft.AspNet.DependencyInjection; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc { diff --git a/src/Microsoft.AspNet.Mvc.Core/IActionInvokerProvider.cs b/src/Microsoft.AspNet.Mvc.Core/IActionInvokerProvider.cs index 1a83ebe34f..534dc42675 100644 --- a/src/Microsoft.AspNet.Mvc.Core/IActionInvokerProvider.cs +++ b/src/Microsoft.AspNet.Mvc.Core/IActionInvokerProvider.cs @@ -15,7 +15,7 @@ // See the Apache 2 License for the specific language governing // permissions and limitations under the License. -using Microsoft.AspNet.DependencyInjection; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc { diff --git a/src/Microsoft.AspNet.Mvc.Core/Injector.cs b/src/Microsoft.AspNet.Mvc.Core/Injector.cs index c9d0557e6a..507bbc0efe 100644 --- a/src/Microsoft.AspNet.Mvc.Core/Injector.cs +++ b/src/Microsoft.AspNet.Mvc.Core/Injector.cs @@ -18,7 +18,7 @@ using System; using System.Linq; using System.Reflection; -using Microsoft.AspNet.DependencyInjection; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc { diff --git a/src/Microsoft.AspNet.Mvc.Core/MvcRouteHandler.cs b/src/Microsoft.AspNet.Mvc.Core/MvcRouteHandler.cs index b86a35b649..1ec1aa74c0 100644 --- a/src/Microsoft.AspNet.Mvc.Core/MvcRouteHandler.cs +++ b/src/Microsoft.AspNet.Mvc.Core/MvcRouteHandler.cs @@ -18,9 +18,9 @@ using System; using System.Diagnostics.Contracts; using System.Threading.Tasks; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Mvc.Core; using Microsoft.AspNet.Routing; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc { diff --git a/src/Microsoft.AspNet.Mvc.Core/ReflectedActionInvoker.cs b/src/Microsoft.AspNet.Mvc.Core/ReflectedActionInvoker.cs index 8964f8fd82..5fe70c74d6 100644 --- a/src/Microsoft.AspNet.Mvc.Core/ReflectedActionInvoker.cs +++ b/src/Microsoft.AspNet.Mvc.Core/ReflectedActionInvoker.cs @@ -21,9 +21,9 @@ using System.Diagnostics.Contracts; using System.Linq; using System.Runtime.ExceptionServices; using System.Threading.Tasks; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Mvc.Core; using Microsoft.AspNet.Mvc.ModelBinding; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc { diff --git a/src/Microsoft.AspNet.Mvc.Core/ReflectedActionInvokerProvider.cs b/src/Microsoft.AspNet.Mvc.Core/ReflectedActionInvokerProvider.cs index 40622cfd12..35f0e95e40 100644 --- a/src/Microsoft.AspNet.Mvc.Core/ReflectedActionInvokerProvider.cs +++ b/src/Microsoft.AspNet.Mvc.Core/ReflectedActionInvokerProvider.cs @@ -16,7 +16,7 @@ // permissions and limitations under the License. using System; -using Microsoft.AspNet.DependencyInjection; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc { diff --git a/src/Microsoft.AspNet.Mvc.Core/Rendering/Html/DefaultDisplayTemplates.cs b/src/Microsoft.AspNet.Mvc.Core/Rendering/Html/DefaultDisplayTemplates.cs index 5f104733b5..b860280485 100644 --- a/src/Microsoft.AspNet.Mvc.Core/Rendering/Html/DefaultDisplayTemplates.cs +++ b/src/Microsoft.AspNet.Mvc.Core/Rendering/Html/DefaultDisplayTemplates.cs @@ -21,9 +21,9 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Mvc.Core; using Microsoft.AspNet.Mvc.ModelBinding; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc.Rendering { diff --git a/src/Microsoft.AspNet.Mvc.Core/Rendering/Html/DefaultEditorTemplates.cs b/src/Microsoft.AspNet.Mvc.Core/Rendering/Html/DefaultEditorTemplates.cs index f05bb8404e..91aca89fb3 100644 --- a/src/Microsoft.AspNet.Mvc.Core/Rendering/Html/DefaultEditorTemplates.cs +++ b/src/Microsoft.AspNet.Mvc.Core/Rendering/Html/DefaultEditorTemplates.cs @@ -21,9 +21,9 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Mvc.Core; using Microsoft.AspNet.Mvc.ModelBinding; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc.Rendering { diff --git a/src/Microsoft.AspNet.Mvc.Core/Rendering/Html/TemplateRenderer.cs b/src/Microsoft.AspNet.Mvc.Core/Rendering/Html/TemplateRenderer.cs index f88b71961c..bd8335cae1 100644 --- a/src/Microsoft.AspNet.Mvc.Core/Rendering/Html/TemplateRenderer.cs +++ b/src/Microsoft.AspNet.Mvc.Core/Rendering/Html/TemplateRenderer.cs @@ -21,8 +21,8 @@ using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Mvc.Core; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc.Rendering { diff --git a/src/Microsoft.AspNet.Mvc.Core/UrlHelper.cs b/src/Microsoft.AspNet.Mvc.Core/UrlHelper.cs index 808b48e08e..464a3e831e 100644 --- a/src/Microsoft.AspNet.Mvc.Core/UrlHelper.cs +++ b/src/Microsoft.AspNet.Mvc.Core/UrlHelper.cs @@ -19,9 +19,9 @@ using System; using System.Collections.Generic; using System.Diagnostics.Contracts; using System.Linq; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Http; using Microsoft.AspNet.Routing; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc { diff --git a/src/Microsoft.AspNet.Mvc.Core/ViewComponents/DefaultViewComponentInvoker.cs b/src/Microsoft.AspNet.Mvc.Core/ViewComponents/DefaultViewComponentInvoker.cs index ca3738af73..0845311394 100644 --- a/src/Microsoft.AspNet.Mvc.Core/ViewComponents/DefaultViewComponentInvoker.cs +++ b/src/Microsoft.AspNet.Mvc.Core/ViewComponents/DefaultViewComponentInvoker.cs @@ -19,9 +19,9 @@ using System; using System.Reflection; using System.Runtime.ExceptionServices; using System.Threading.Tasks; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Mvc.Core; using Microsoft.AspNet.Mvc.Rendering; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc { diff --git a/src/Microsoft.AspNet.Mvc.Core/ViewComponents/DefaultViewComponentInvokerFactory.cs b/src/Microsoft.AspNet.Mvc.Core/ViewComponents/DefaultViewComponentInvokerFactory.cs index 0a726747c7..5986851838 100644 --- a/src/Microsoft.AspNet.Mvc.Core/ViewComponents/DefaultViewComponentInvokerFactory.cs +++ b/src/Microsoft.AspNet.Mvc.Core/ViewComponents/DefaultViewComponentInvokerFactory.cs @@ -16,7 +16,7 @@ // permissions and limitations under the License. using System.Reflection; -using Microsoft.AspNet.DependencyInjection; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc { diff --git a/src/Microsoft.AspNet.Mvc.Core/ViewComponents/IViewComponentInvokerProvider.cs b/src/Microsoft.AspNet.Mvc.Core/ViewComponents/IViewComponentInvokerProvider.cs index db1edc8df4..c29e1bc9e1 100644 --- a/src/Microsoft.AspNet.Mvc.Core/ViewComponents/IViewComponentInvokerProvider.cs +++ b/src/Microsoft.AspNet.Mvc.Core/ViewComponents/IViewComponentInvokerProvider.cs @@ -15,7 +15,7 @@ // See the Apache 2 License for the specific language governing // permissions and limitations under the License. -using Microsoft.AspNet.DependencyInjection; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc { diff --git a/src/Microsoft.AspNet.Mvc.Core/project.json b/src/Microsoft.AspNet.Mvc.Core/project.json index f6eacf3b55..db92037006 100644 --- a/src/Microsoft.AspNet.Mvc.Core/project.json +++ b/src/Microsoft.AspNet.Mvc.Core/project.json @@ -5,12 +5,12 @@ }, "dependencies": { "Newtonsoft.Json": "5.0.8", - "Microsoft.AspNet.DependencyInjection": "0.1-alpha-*", "Microsoft.AspNet.Http": "0.1-alpha-*", "Microsoft.AspNet.Routing": "0.1-alpha-*", "Microsoft.AspNet.Security": "0.1-alpha-*", "Common": "", "Microsoft.AspNet.Mvc.ModelBinding": "", + "Microsoft.Framework.DependencyInjection": "0.1-alpha-*", "Microsoft.Net.Runtime.Interfaces": "0.1-alpha-*", "Microsoft.AspNet.Security.DataProtection" : "0.1-alpha-*" }, diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/GenericModelBinder.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/GenericModelBinder.cs index e34663c00a..b9e859c026 100644 --- a/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/GenericModelBinder.cs +++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/GenericModelBinder.cs @@ -20,8 +20,8 @@ using System.Collections.Generic; using System.Diagnostics.Contracts; using System.Reflection; using System.Threading.Tasks; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Mvc.ModelBinding.Internal; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc.ModelBinding { diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/project.json b/src/Microsoft.AspNet.Mvc.ModelBinding/project.json index 64f9a8d22d..4f38c15545 100644 --- a/src/Microsoft.AspNet.Mvc.ModelBinding/project.json +++ b/src/Microsoft.AspNet.Mvc.ModelBinding/project.json @@ -5,9 +5,9 @@ }, "dependencies": { "Common": "", - "Microsoft.AspNet.DependencyInjection": "0.1-alpha-*", "Microsoft.AspNet.Http": "0.1-alpha-*", "Microsoft.ComponentModel.DataAnnotations": "0.1-alpha-*", + "Microsoft.Framework.DependencyInjection": "0.1-alpha-*", "Newtonsoft.Json": "5.0.8" }, "configurations": { diff --git a/src/Microsoft.AspNet.Mvc.Razor.Host/project.json b/src/Microsoft.AspNet.Mvc.Razor.Host/project.json index 688cd2cf14..a32765e9d2 100644 --- a/src/Microsoft.AspNet.Mvc.Razor.Host/project.json +++ b/src/Microsoft.AspNet.Mvc.Razor.Host/project.json @@ -6,13 +6,13 @@ "dependencies": { "Microsoft.AspNet.FileSystems": "0.1-alpha-*", "Microsoft.AspNet.Http": "0.1-alpha-*", - "Microsoft.AspNet.DependencyInjection": "0.1-alpha-*", "Microsoft.AspNet.Razor": "0.1-alpha-*", "Common": "", "Microsoft.AspNet.Mvc.Core" : "", "Microsoft.AspNet.Mvc.ModelBinding" : "", "Microsoft.CodeAnalysis.Common" : "0.7-beta-*", "Microsoft.CodeAnalysis.CSharp" : "0.7-beta-*", + "Microsoft.Framework.DependencyInjection": "0.1-alpha-*", "System.Reflection.Metadata.Ecma335": "0.7-beta-*", "Microsoft.Bcl.Immutable": "1.1.18-beta-*", "Microsoft.Net.Runtime.Interfaces": "0.1-alpha-*" diff --git a/src/Microsoft.AspNet.Mvc.Razor/RazorView.cs b/src/Microsoft.AspNet.Mvc.Razor/RazorView.cs index 0b475f667a..f9574d6198 100644 --- a/src/Microsoft.AspNet.Mvc.Razor/RazorView.cs +++ b/src/Microsoft.AspNet.Mvc.Razor/RazorView.cs @@ -21,12 +21,11 @@ using System.Diagnostics.Contracts; using System.IO; using System.Linq; using System.Net; -using System.Security.Cryptography; using System.Security.Principal; using System.Text; using System.Threading.Tasks; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Mvc.Rendering; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc.Razor { diff --git a/src/Microsoft.AspNet.Mvc.Razor/RazorViewOfT.cs b/src/Microsoft.AspNet.Mvc.Razor/RazorViewOfT.cs index b87c1207fc..724a86d760 100644 --- a/src/Microsoft.AspNet.Mvc.Razor/RazorViewOfT.cs +++ b/src/Microsoft.AspNet.Mvc.Razor/RazorViewOfT.cs @@ -17,9 +17,9 @@ using System.IO; using System.Threading.Tasks; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Mvc.ModelBinding; using Microsoft.AspNet.Mvc.Rendering; +using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.Mvc.Razor { diff --git a/src/Microsoft.AspNet.Mvc.Razor/project.json b/src/Microsoft.AspNet.Mvc.Razor/project.json index 5e256b849f..a57a1fcd28 100644 --- a/src/Microsoft.AspNet.Mvc.Razor/project.json +++ b/src/Microsoft.AspNet.Mvc.Razor/project.json @@ -6,8 +6,8 @@ "dependencies": { "Microsoft.AspNet.FileSystems": "0.1-alpha-*", "Microsoft.AspNet.Http": "0.1-alpha-*", - "Microsoft.AspNet.DependencyInjection": "0.1-alpha-*", "Microsoft.AspNet.Razor": "0.1-alpha-*", + "Microsoft.Framework.DependencyInjection": "0.1-alpha-*", "Common": "", "Microsoft.AspNet.Mvc.Core" : "", "Microsoft.AspNet.Mvc.Razor.Host" : "", diff --git a/src/Microsoft.AspNet.Mvc/BuilderExtensions.cs b/src/Microsoft.AspNet.Mvc/BuilderExtensions.cs index 42b7d49105..f7aaa7b124 100644 --- a/src/Microsoft.AspNet.Mvc/BuilderExtensions.cs +++ b/src/Microsoft.AspNet.Mvc/BuilderExtensions.cs @@ -16,12 +16,10 @@ // permissions and limitations under the License. using System; -using System.Collections.Generic; -using Microsoft.AspNet.Builder; using Microsoft.AspNet.Mvc; using Microsoft.AspNet.Routing; -namespace Microsoft.AspNet +namespace Microsoft.AspNet.Builder { public static class BuilderExtensions { diff --git a/src/Microsoft.AspNet.Mvc/MvcServices.cs b/src/Microsoft.AspNet.Mvc/MvcServices.cs index 67cd9668b8..2571e5df25 100644 --- a/src/Microsoft.AspNet.Mvc/MvcServices.cs +++ b/src/Microsoft.AspNet.Mvc/MvcServices.cs @@ -16,15 +16,15 @@ // permissions and limitations under the License. using System.Collections.Generic; -using Microsoft.Framework.ConfigurationModel; -using Microsoft.AspNet.DependencyInjection; -using Microsoft.AspNet.DependencyInjection.NestedProviders; using Microsoft.AspNet.Mvc.Filters; using Microsoft.AspNet.Mvc.ModelBinding; using Microsoft.AspNet.Mvc.Razor; using Microsoft.AspNet.Mvc.Razor.Compilation; using Microsoft.AspNet.Mvc.Rendering; using Microsoft.AspNet.Security; +using Microsoft.Framework.ConfigurationModel; +using Microsoft.Framework.DependencyInjection; +using Microsoft.Framework.DependencyInjection.NestedProviders; namespace Microsoft.AspNet.Mvc { diff --git a/src/Microsoft.AspNet.Mvc/ServiceCollectionExtensions.cs b/src/Microsoft.AspNet.Mvc/ServiceCollectionExtensions.cs index 971cfeb5ff..70bb2dabf9 100644 --- a/src/Microsoft.AspNet.Mvc/ServiceCollectionExtensions.cs +++ b/src/Microsoft.AspNet.Mvc/ServiceCollectionExtensions.cs @@ -15,10 +15,10 @@ // See the Apache 2 License for the specific language governing // permissions and limitations under the License. +using Microsoft.AspNet.Mvc; using Microsoft.Framework.ConfigurationModel; -using Microsoft.AspNet.DependencyInjection; -namespace Microsoft.AspNet.Mvc +namespace Microsoft.Framework.DependencyInjection { public static class ServiceCollectionExtensions { diff --git a/src/Microsoft.AspNet.Mvc/project.json b/src/Microsoft.AspNet.Mvc/project.json index e7c1f2f743..eddc6e7823 100644 --- a/src/Microsoft.AspNet.Mvc/project.json +++ b/src/Microsoft.AspNet.Mvc/project.json @@ -6,7 +6,7 @@ "dependencies": { "Microsoft.AspNet.Http" : "0.1-alpha-*", "Microsoft.Framework.ConfigurationModel" : "0.1-alpha-*", - "Microsoft.AspNet.DependencyInjection" : "0.1-alpha-*", + "Microsoft.Framework.DependencyInjection" : "0.1-alpha-*", "Microsoft.AspNet.FileSystems" : "0.1-alpha-*", "Microsoft.AspNet.Razor" : "0.1-alpha-*", "Microsoft.AspNet.RequestContainer": "0.1-alpha-*", diff --git a/test/Microsoft.AspNet.Mvc.Core.Test/ActionAttributeTests.cs b/test/Microsoft.AspNet.Mvc.Core.Test/ActionAttributeTests.cs index 1135939360..751f1b774d 100644 --- a/test/Microsoft.AspNet.Mvc.Core.Test/ActionAttributeTests.cs +++ b/test/Microsoft.AspNet.Mvc.Core.Test/ActionAttributeTests.cs @@ -17,14 +17,14 @@ #if NET45 -using Microsoft.AspNet.DependencyInjection.NestedProviders; -using Microsoft.AspNet.Http; -using Moq; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Threading.Tasks; +using Microsoft.AspNet.Http; +using Microsoft.Framework.DependencyInjection.NestedProviders; +using Moq; using Xunit; namespace Microsoft.AspNet.Mvc.Core.Test diff --git a/test/Microsoft.AspNet.Mvc.Core.Test/ActionSelectionConventionTests.cs b/test/Microsoft.AspNet.Mvc.Core.Test/ActionSelectionConventionTests.cs index 21d5d5b3c8..e9a54db36c 100644 --- a/test/Microsoft.AspNet.Mvc.Core.Test/ActionSelectionConventionTests.cs +++ b/test/Microsoft.AspNet.Mvc.Core.Test/ActionSelectionConventionTests.cs @@ -17,13 +17,13 @@ #if NET45 -using Microsoft.AspNet.DependencyInjection.NestedProviders; -using Microsoft.AspNet.Http; -using Moq; using System; using System.Collections.Generic; using System.Reflection; using System.Threading.Tasks; +using Microsoft.AspNet.Http; +using Microsoft.Framework.DependencyInjection.NestedProviders; +using Moq; using Xunit; namespace Microsoft.AspNet.Mvc.Core.Test diff --git a/test/Microsoft.AspNet.Mvc.Core.Test/DefaultActionSelectorTest.cs b/test/Microsoft.AspNet.Mvc.Core.Test/DefaultActionSelectorTest.cs index 95a20a5a96..243c7e725e 100644 --- a/test/Microsoft.AspNet.Mvc.Core.Test/DefaultActionSelectorTest.cs +++ b/test/Microsoft.AspNet.Mvc.Core.Test/DefaultActionSelectorTest.cs @@ -18,9 +18,9 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Http; using Microsoft.AspNet.Routing; +using Microsoft.Framework.DependencyInjection; using Moq; using Xunit; diff --git a/test/Microsoft.AspNet.Mvc.Core.Test/DefaultControllerFactoryTest.cs b/test/Microsoft.AspNet.Mvc.Core.Test/DefaultControllerFactoryTest.cs index 25ec3680a9..2bf4d4ca4a 100644 --- a/test/Microsoft.AspNet.Mvc.Core.Test/DefaultControllerFactoryTest.cs +++ b/test/Microsoft.AspNet.Mvc.Core.Test/DefaultControllerFactoryTest.cs @@ -16,11 +16,7 @@ // permissions and limitations under the License. using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Microsoft.AspNet.DependencyInjection; +using Microsoft.Framework.DependencyInjection; using Moq; using Xunit; diff --git a/test/Microsoft.AspNet.Mvc.Core.Test/Filters/AuthorizeAttributeTests.cs b/test/Microsoft.AspNet.Mvc.Core.Test/Filters/AuthorizeAttributeTests.cs index 468bf06da5..531b4e19ed 100644 --- a/test/Microsoft.AspNet.Mvc.Core.Test/Filters/AuthorizeAttributeTests.cs +++ b/test/Microsoft.AspNet.Mvc.Core.Test/Filters/AuthorizeAttributeTests.cs @@ -15,13 +15,11 @@ // See the Apache 2 License for the specific language governing // permissions and limitations under the License. -using System; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; -using Microsoft.AspNet.DependencyInjection; -using Microsoft.AspNet.Mvc; using Microsoft.AspNet.Security; +using Microsoft.Framework.DependencyInjection; using Moq; using Xunit; diff --git a/test/Microsoft.AspNet.Mvc.Core.Test/Filters/AuthorizeAttributeTestsBase.cs b/test/Microsoft.AspNet.Mvc.Core.Test/Filters/AuthorizeAttributeTestsBase.cs index a9d03db84f..dc40f44fe7 100644 --- a/test/Microsoft.AspNet.Mvc.Core.Test/Filters/AuthorizeAttributeTestsBase.cs +++ b/test/Microsoft.AspNet.Mvc.Core.Test/Filters/AuthorizeAttributeTestsBase.cs @@ -16,14 +16,11 @@ // permissions and limitations under the License. using System; -using System.Collections.Generic; using System.Linq; using System.Security.Claims; -using System.Threading.Tasks; -using System.Web; -using Microsoft.AspNet.DependencyInjection; -using Microsoft.AspNet.DependencyInjection.Fallback; using Microsoft.AspNet.Http; +using Microsoft.Framework.DependencyInjection; +using Microsoft.Framework.DependencyInjection.Fallback; using Moq; namespace Microsoft.AspNet.Mvc.Core.Test diff --git a/test/Microsoft.AspNet.Mvc.Core.Test/ReflectedActionInvokerTest.cs b/test/Microsoft.AspNet.Mvc.Core.Test/ReflectedActionInvokerTest.cs index c12e9d5fd3..f5ccccf2bc 100644 --- a/test/Microsoft.AspNet.Mvc.Core.Test/ReflectedActionInvokerTest.cs +++ b/test/Microsoft.AspNet.Mvc.Core.Test/ReflectedActionInvokerTest.cs @@ -17,13 +17,12 @@ using System; using System.Collections.Generic; -using System.Linq; using System.IO; +using System.Linq; using System.Threading.Tasks; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Http; -using Microsoft.AspNet.Mvc.Filters; using Microsoft.AspNet.Testing; +using Microsoft.Framework.DependencyInjection; using Moq; using Xunit; diff --git a/test/Microsoft.AspNet.Mvc.Core.Test/UrlHelperTest.cs b/test/Microsoft.AspNet.Mvc.Core.Test/UrlHelperTest.cs index 3b11482acc..7ba7d63c12 100644 --- a/test/Microsoft.AspNet.Mvc.Core.Test/UrlHelperTest.cs +++ b/test/Microsoft.AspNet.Mvc.Core.Test/UrlHelperTest.cs @@ -16,9 +16,9 @@ // permissions and limitations under the License. using System.Collections.Generic; -using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.Http; using Microsoft.AspNet.Routing; +using Microsoft.Framework.DependencyInjection; using Moq; using Xunit; diff --git a/test/Microsoft.AspNet.Mvc.Core.Test/project.json b/test/Microsoft.AspNet.Mvc.Core.Test/project.json index 19af96d75a..50295c8e37 100644 --- a/test/Microsoft.AspNet.Mvc.Core.Test/project.json +++ b/test/Microsoft.AspNet.Mvc.Core.Test/project.json @@ -5,15 +5,14 @@ }, "dependencies": { "Microsoft.AspNet.Http": "0.1-alpha-*", - "Microsoft.AspNet.DependencyInjection": "0.1-alpha-*", "Microsoft.AspNet.Mvc.Core" : "", "Microsoft.AspNet.Mvc" : "", "Microsoft.AspNet.Routing": "0.1-alpha-*", "Microsoft.AspNet.Testing": "0.1-alpha-*", "Microsoft.AspNet.Mvc.ModelBinding": "", "Microsoft.AspNet.Routing": "0.1-alpha-*", - "Microsoft.AspNet.DependencyInjection" : "0.1-alpha-*", "Microsoft.AspNet.Mvc.ModelBinding" : "", + "Microsoft.Framework.DependencyInjection": "0.1-alpha-*", "Moq": "4.2.1312.1622", "Xunit.KRunner": "0.1-alpha-*", "xunit.abstractions": "2.0.0-aspnet-*", diff --git a/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Binders/CompositeModelBinderTest.cs b/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Binders/CompositeModelBinderTest.cs index 3bd0d98e08..5c3179f3dc 100644 --- a/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Binders/CompositeModelBinderTest.cs +++ b/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Binders/CompositeModelBinderTest.cs @@ -18,10 +18,9 @@ #if NET45 using System; using System.Collections.Generic; -using System.Globalization; using System.Linq; using System.Threading.Tasks; -using Microsoft.AspNet.DependencyInjection; +using Microsoft.Framework.DependencyInjection; using Moq; using Xunit; diff --git a/test/Microsoft.AspNet.Mvc.ModelBinding.Test/project.json b/test/Microsoft.AspNet.Mvc.ModelBinding.Test/project.json index dffa1f3aae..a3309cd440 100644 --- a/test/Microsoft.AspNet.Mvc.ModelBinding.Test/project.json +++ b/test/Microsoft.AspNet.Mvc.ModelBinding.Test/project.json @@ -5,11 +5,11 @@ }, "dependencies": { "Microsoft.AspNet.Http": "0.1-alpha-*", - "Microsoft.AspNet.DependencyInjection": "0.1-alpha-*", "Microsoft.AspNet.PipelineCore": "0.1-alpha-*", "Microsoft.AspNet.Testing": "0.1-alpha-*", "Microsoft.ComponentModel.DataAnnotations" : "0.1-alpha-*", "Microsoft.AspNet.Mvc.ModelBinding" : "", + "Microsoft.Framework.DependencyInjection": "0.1-alpha-*", "Newtonsoft.Json": "5.0.8", "Xunit.KRunner": "0.1-alpha-*", "xunit.abstractions": "2.0.0-aspnet-*",