diff --git a/.gitignore b/.gitignore
index bf64c277..7bb2ead9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,6 +18,13 @@ x64/
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
+# Visual Studio 2015 cache/options directory
+.vs/
+
+# DNX
+project.lock.json
+artifacts/
+
*_i.c
*_p.c
*_i.h
@@ -130,3 +137,6 @@ $RECYCLE.BIN/
.DS_Store
_NCrunch*
+project.lock.json
+testresults.xml
+testresults.xml
diff --git a/quickstarts/CS/Stoplight/Src/packages.config b/quickstarts/CS/Stoplight/Src/packages.config
index e86a79cc..843c5d3a 100644
--- a/quickstarts/CS/Stoplight/Src/packages.config
+++ b/quickstarts/CS/Stoplight/Src/packages.config
@@ -1,4 +1,4 @@
-
+
\ No newline at end of file
diff --git a/source/.nuget/NuGet.Config b/source/.nuget/NuGet.Config
new file mode 100644
index 00000000..67f8ea04
--- /dev/null
+++ b/source/.nuget/NuGet.Config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/source/.nuget/NuGet.targets b/source/.nuget/NuGet.targets
new file mode 100644
index 00000000..3f8c37b2
--- /dev/null
+++ b/source/.nuget/NuGet.targets
@@ -0,0 +1,144 @@
+
+
+
+ $(MSBuildProjectDirectory)\..\
+
+
+ false
+
+
+ false
+
+
+ true
+
+
+ false
+
+
+
+
+
+
+
+
+
+
+ $([System.IO.Path]::Combine($(SolutionDir), ".nuget"))
+
+
+
+
+ $(SolutionDir).nuget
+
+
+
+ $(MSBuildProjectDirectory)\packages.$(MSBuildProjectName.Replace(' ', '_')).config
+ $(MSBuildProjectDirectory)\packages.$(MSBuildProjectName).config
+
+
+
+ $(MSBuildProjectDirectory)\packages.config
+ $(PackagesProjectConfig)
+
+
+
+
+ $(NuGetToolsPath)\NuGet.exe
+ @(PackageSource)
+
+ "$(NuGetExePath)"
+ mono --runtime=v4.0.30319 "$(NuGetExePath)"
+
+ $(TargetDir.Trim('\\'))
+
+ -RequireConsent
+ -NonInteractive
+
+ "$(SolutionDir) "
+ "$(SolutionDir)"
+
+
+ $(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(NonInteractiveSwitch) $(RequireConsentSwitch) -solutionDir $(PaddedSolutionDir)
+ $(NuGetCommand) pack "$(ProjectPath)" -Properties "Configuration=$(Configuration);Platform=$(Platform)" $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols
+
+
+
+ RestorePackages;
+ $(BuildDependsOn);
+
+
+
+
+ $(BuildDependsOn);
+ BuildPackage;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/source/Common/GlobalAssemblyInfo.cs b/source/Common/GlobalAssemblyInfo.cs
index 2ee276f9..40ce700e 100644
--- a/source/Common/GlobalAssemblyInfo.cs
+++ b/source/Common/GlobalAssemblyInfo.cs
@@ -22,5 +22,5 @@
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("4.0.0.0")]
-[assembly: AssemblyFileVersion("4.0.1.0")]
-[assembly: AssemblyInformationalVersion("4.0.1")]
+[assembly: AssemblyFileVersion("4.0.0.0")]
+[assembly: AssemblyInformationalVersion("4.0.0")]
diff --git a/source/NuGet/Unity.nuspec b/source/NuGet/Unity.nuspec
index c1edeb6e..09c4f34b 100644
--- a/source/NuGet/Unity.nuspec
+++ b/source/NuGet/Unity.nuspec
@@ -14,7 +14,15 @@
© Microsoft Corporation. All rights reserved.
true
+
+
+
+
+
+
+
+
Unity Unity3 Unity35 EntLib EntLib6 IoC DI container dependency injection inversion control LOB WinRT Win8 Windows8 NetCore WindowsStoreApps WindowsStore WindowsPhone WindowsPhone8 wp8 Azure Xamarin MonoTouch MonoAndroid OSS
diff --git a/source/Unity/Src/Attributes/DependencyAttribute.cs b/source/Src/Unity-CoreClr/Attributes/DependencyAttribute.cs
similarity index 94%
rename from source/Unity/Src/Attributes/DependencyAttribute.cs
rename to source/Src/Unity-CoreClr/Attributes/DependencyAttribute.cs
index c042f478..ffc0ee76 100644
--- a/source/Unity/Src/Attributes/DependencyAttribute.cs
+++ b/source/Src/Unity-CoreClr/Attributes/DependencyAttribute.cs
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.ObjectBuilder;
+using ObjectBuilder2;
+using Unity.ObjectBuilder;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// This attribute is used to mark properties and parameters as targets for injection.
diff --git a/source/Unity/Src/Attributes/DependencyResolutionAttribute.cs b/source/Src/Unity-CoreClr/Attributes/DependencyResolutionAttribute.cs
similarity index 92%
rename from source/Unity/Src/Attributes/DependencyResolutionAttribute.cs
rename to source/Src/Unity-CoreClr/Attributes/DependencyResolutionAttribute.cs
index 6ee96f4c..6b97b493 100644
--- a/source/Unity/Src/Attributes/DependencyResolutionAttribute.cs
+++ b/source/Src/Unity-CoreClr/Attributes/DependencyResolutionAttribute.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System;
-using Microsoft.Practices.ObjectBuilder2;
+using ObjectBuilder2;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// Base class for attributes that can be placed on parameters
diff --git a/source/Unity/Src/Attributes/InjectionConstructorAttribute.cs b/source/Src/Unity-CoreClr/Attributes/InjectionConstructorAttribute.cs
similarity index 92%
rename from source/Unity/Src/Attributes/InjectionConstructorAttribute.cs
rename to source/Src/Unity-CoreClr/Attributes/InjectionConstructorAttribute.cs
index 2a6b2e05..b87af00c 100644
--- a/source/Unity/Src/Attributes/InjectionConstructorAttribute.cs
+++ b/source/Src/Unity-CoreClr/Attributes/InjectionConstructorAttribute.cs
@@ -2,7 +2,7 @@
using System;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// This attribute is used to indicate which constructor to choose when
diff --git a/source/Unity/Src/Attributes/InjectionMethodAttribute.cs b/source/Src/Unity-CoreClr/Attributes/InjectionMethodAttribute.cs
similarity index 92%
rename from source/Unity/Src/Attributes/InjectionMethodAttribute.cs
rename to source/Src/Unity-CoreClr/Attributes/InjectionMethodAttribute.cs
index 33f3082f..7d39879d 100644
--- a/source/Unity/Src/Attributes/InjectionMethodAttribute.cs
+++ b/source/Src/Unity-CoreClr/Attributes/InjectionMethodAttribute.cs
@@ -2,7 +2,7 @@
using System;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// This attribute is used to mark methods that should be called when
diff --git a/source/Unity/Src/Attributes/OptionalDependencyAttribute.cs b/source/Src/Unity-CoreClr/Attributes/OptionalDependencyAttribute.cs
similarity index 96%
rename from source/Unity/Src/Attributes/OptionalDependencyAttribute.cs
rename to source/Src/Unity-CoreClr/Attributes/OptionalDependencyAttribute.cs
index 90568cf9..a41afa50 100644
--- a/source/Unity/Src/Attributes/OptionalDependencyAttribute.cs
+++ b/source/Src/Unity-CoreClr/Attributes/OptionalDependencyAttribute.cs
@@ -4,9 +4,9 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
-using Microsoft.Practices.ObjectBuilder2;
+using ObjectBuilder2;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// An used to mark a dependency
diff --git a/source/Unity/Src/CompositeResolverOverride.cs b/source/Src/Unity-CoreClr/CompositeResolverOverride.cs
similarity index 97%
rename from source/Unity/Src/CompositeResolverOverride.cs
rename to source/Src/Unity-CoreClr/CompositeResolverOverride.cs
index 2f8533dc..b95a422f 100644
--- a/source/Unity/Src/CompositeResolverOverride.cs
+++ b/source/Src/Unity-CoreClr/CompositeResolverOverride.cs
@@ -5,9 +5,9 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
-using Microsoft.Practices.ObjectBuilder2;
+using ObjectBuilder2;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A that composites other
diff --git a/source/Unity/Src/ContainerRegistration.cs b/source/Src/Unity-CoreClr/ContainerRegistration.cs
similarity index 97%
rename from source/Unity/Src/ContainerRegistration.cs
rename to source/Src/Unity-CoreClr/ContainerRegistration.cs
index 18441ead..ef479d3a 100644
--- a/source/Unity/Src/ContainerRegistration.cs
+++ b/source/Src/Unity-CoreClr/ContainerRegistration.cs
@@ -2,9 +2,9 @@
using System;
using System.Reflection;
-using Microsoft.Practices.ObjectBuilder2;
+using ObjectBuilder2;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// Class that returns information about the types registered in a container.
diff --git a/source/Unity/Src/DependencyOverride.cs b/source/Src/Unity-CoreClr/DependencyOverride.cs
similarity index 95%
rename from source/Unity/Src/DependencyOverride.cs
rename to source/Src/Unity-CoreClr/DependencyOverride.cs
index 04db3e3a..e6dc8281 100644
--- a/source/Unity/Src/DependencyOverride.cs
+++ b/source/Src/Unity-CoreClr/DependencyOverride.cs
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.Utility;
+using ObjectBuilder2;
+using Unity.Utility;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A class that overrides
diff --git a/source/Unity/Src/DependencyOverrides.cs b/source/Src/Unity-CoreClr/DependencyOverrides.cs
similarity index 97%
rename from source/Unity/Src/DependencyOverrides.cs
rename to source/Src/Unity-CoreClr/DependencyOverrides.cs
index 1921b5af..09723b81 100644
--- a/source/Unity/Src/DependencyOverrides.cs
+++ b/source/Src/Unity-CoreClr/DependencyOverrides.cs
@@ -3,7 +3,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A convenience form of that lets you
diff --git a/source/Unity/Src/Extension/ChildContainerCreatedEventArgs.cs b/source/Src/Unity-CoreClr/Extension/ChildContainerCreatedEventArgs.cs
similarity index 97%
rename from source/Unity/Src/Extension/ChildContainerCreatedEventArgs.cs
rename to source/Src/Unity-CoreClr/Extension/ChildContainerCreatedEventArgs.cs
index 00883cdc..c2624279 100644
--- a/source/Unity/Src/Extension/ChildContainerCreatedEventArgs.cs
+++ b/source/Src/Unity-CoreClr/Extension/ChildContainerCreatedEventArgs.cs
@@ -2,7 +2,7 @@
using System;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// Event argument class for the event.
diff --git a/source/Unity/Src/Extension/ExtensionContext.cs b/source/Src/Unity-CoreClr/Extension/ExtensionContext.cs
similarity index 96%
rename from source/Unity/Src/Extension/ExtensionContext.cs
rename to source/Src/Unity-CoreClr/Extension/ExtensionContext.cs
index 79363738..5e150a2c 100644
--- a/source/Unity/Src/Extension/ExtensionContext.cs
+++ b/source/Src/Unity-CoreClr/Extension/ExtensionContext.cs
@@ -2,10 +2,10 @@
using System;
using System.Diagnostics.CodeAnalysis;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.ObjectBuilder;
+using ObjectBuilder2;
+using Unity.ObjectBuilder;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// The class provides the means for extension objects
diff --git a/source/Unity/Src/Extension/IUnityContainerExtensionConfigurator.cs b/source/Src/Unity-CoreClr/Extension/IUnityContainerExtensionConfigurator.cs
similarity index 94%
rename from source/Unity/Src/Extension/IUnityContainerExtensionConfigurator.cs
rename to source/Src/Unity-CoreClr/Extension/IUnityContainerExtensionConfigurator.cs
index 7637bbc2..e28b6cdf 100644
--- a/source/Unity/Src/Extension/IUnityContainerExtensionConfigurator.cs
+++ b/source/Src/Unity-CoreClr/Extension/IUnityContainerExtensionConfigurator.cs
@@ -2,7 +2,7 @@
using System.Diagnostics.CodeAnalysis;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// Base interface for all extension configuration interfaces.
diff --git a/source/Unity/Src/Extension/NamedEventArgs.cs b/source/Src/Unity-CoreClr/Extension/NamedEventArgs.cs
similarity index 96%
rename from source/Unity/Src/Extension/NamedEventArgs.cs
rename to source/Src/Unity-CoreClr/Extension/NamedEventArgs.cs
index 15630460..a440bab9 100644
--- a/source/Unity/Src/Extension/NamedEventArgs.cs
+++ b/source/Src/Unity-CoreClr/Extension/NamedEventArgs.cs
@@ -2,7 +2,7 @@
using System;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// An EventArgs class that holds a string Name.
diff --git a/source/Unity/Src/Extension/RegisterEventArgs.cs b/source/Src/Unity-CoreClr/Extension/RegisterEventArgs.cs
similarity index 98%
rename from source/Unity/Src/Extension/RegisterEventArgs.cs
rename to source/Src/Unity-CoreClr/Extension/RegisterEventArgs.cs
index 451edffe..65780e82 100644
--- a/source/Unity/Src/Extension/RegisterEventArgs.cs
+++ b/source/Src/Unity-CoreClr/Extension/RegisterEventArgs.cs
@@ -2,7 +2,7 @@
using System;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// Event argument class for the event.
diff --git a/source/Unity/Src/Extension/RegisterInstanceEventArgs.cs b/source/Src/Unity-CoreClr/Extension/RegisterInstanceEventArgs.cs
similarity index 98%
rename from source/Unity/Src/Extension/RegisterInstanceEventArgs.cs
rename to source/Src/Unity-CoreClr/Extension/RegisterInstanceEventArgs.cs
index c07430c7..2f01bc2f 100644
--- a/source/Unity/Src/Extension/RegisterInstanceEventArgs.cs
+++ b/source/Src/Unity-CoreClr/Extension/RegisterInstanceEventArgs.cs
@@ -2,7 +2,7 @@
using System;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// Event argument class for the event.
diff --git a/source/Unity/Src/Extension/UnityContainerExtension.cs b/source/Src/Unity-CoreClr/Extension/UnityContainerExtension.cs
similarity index 98%
rename from source/Unity/Src/Extension/UnityContainerExtension.cs
rename to source/Src/Unity-CoreClr/Extension/UnityContainerExtension.cs
index cf93581c..aa115653 100644
--- a/source/Unity/Src/Extension/UnityContainerExtension.cs
+++ b/source/Src/Unity-CoreClr/Extension/UnityContainerExtension.cs
@@ -3,7 +3,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// Base class for all extension objects.
diff --git a/source/Unity/Src/GlobalAssemblyInfo.cs b/source/Src/Unity-CoreClr/GlobalAssemblyInfo.cs
similarity index 57%
rename from source/Unity/Src/GlobalAssemblyInfo.cs
rename to source/Src/Unity-CoreClr/GlobalAssemblyInfo.cs
index d81d094d..17a2c7e4 100644
--- a/source/Unity/Src/GlobalAssemblyInfo.cs
+++ b/source/Src/Unity-CoreClr/GlobalAssemblyInfo.cs
@@ -5,8 +5,8 @@
using System.Security;
[assembly: CLSCompliant(true)]
-[assembly: AssemblyProduct("Microsoft Unity Application Block")]
-[assembly: AssemblyCompany("Microsoft Corporation")]
+[assembly: AssemblyProduct("Unity Core")]
+[assembly: AssemblyCompany("")]
[assembly: SecurityTransparent]
@@ -15,10 +15,10 @@
#else
[assembly: AssemblyConfiguration("Release")]
#endif
-[assembly: AssemblyCopyright("Copyright © Microsoft Corporation")]
+[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
-[assembly: AssemblyVersion("4.0.0.0")]
-[assembly: AssemblyFileVersion("4.0.1.0")]
-[assembly: AssemblyInformationalVersion("4.0.1")]
+[assembly: AssemblyVersion("0.0.1.0")]
+[assembly: AssemblyFileVersion("0.0.1.0")]
+[assembly: AssemblyInformationalVersion("0.0.1")]
diff --git a/source/Unity/Src/GlobalSuppressions.cs b/source/Src/Unity-CoreClr/GlobalSuppressions.cs
similarity index 75%
rename from source/Unity/Src/GlobalSuppressions.cs
rename to source/Src/Unity-CoreClr/GlobalSuppressions.cs
index 52489a97..d5525329 100644
--- a/source/Unity/Src/GlobalSuppressions.cs
+++ b/source/Src/Unity-CoreClr/GlobalSuppressions.cs
@@ -3,4 +3,4 @@
using System.Diagnostics.CodeAnalysis;
[assembly: SuppressMessage("Microsoft.Design", "CA2210:AssembliesShouldHaveValidStrongNames", Justification = "Strong name is supplied in build process.")]
-[assembly: SuppressMessage("Microsoft.Design", "CA1020:AvoidNamespacesWithFewTypes", Scope = "namespace", Target = "Microsoft.Practices.Unity.StaticFactory", Justification = "As designed")]
\ No newline at end of file
+[assembly: SuppressMessage("Microsoft.Design", "CA1020:AvoidNamespacesWithFewTypes", Scope = "namespace", Target = "Unity.StaticFactory", Justification = "As designed")]
diff --git a/source/Unity/Src/IUnityContainer.cs b/source/Src/Unity-CoreClr/IUnityContainer.cs
similarity index 99%
rename from source/Unity/Src/IUnityContainer.cs
rename to source/Src/Unity-CoreClr/IUnityContainer.cs
index 785c15d1..6a1099f7 100644
--- a/source/Unity/Src/IUnityContainer.cs
+++ b/source/Src/Unity-CoreClr/IUnityContainer.cs
@@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// Interface defining the behavior of the Unity dependency injection container.
diff --git a/source/Unity/Src/Injection/GenericParameter.cs b/source/Src/Unity-CoreClr/Injection/GenericParameter.cs
similarity index 93%
rename from source/Unity/Src/Injection/GenericParameter.cs
rename to source/Src/Unity-CoreClr/Injection/GenericParameter.cs
index 737587c6..f3f01cbb 100644
--- a/source/Unity/Src/Injection/GenericParameter.cs
+++ b/source/Src/Unity-CoreClr/Injection/GenericParameter.cs
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.ObjectBuilder;
+using ObjectBuilder2;
+using Unity.ObjectBuilder;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A that lets you specify that
diff --git a/source/Unity/Src/Injection/GenericParameterBase.cs b/source/Src/Unity-CoreClr/Injection/GenericParameterBase.cs
similarity index 97%
rename from source/Unity/Src/Injection/GenericParameterBase.cs
rename to source/Src/Unity-CoreClr/Injection/GenericParameterBase.cs
index 489ed429..f3368d25 100644
--- a/source/Unity/Src/Injection/GenericParameterBase.cs
+++ b/source/Src/Unity-CoreClr/Injection/GenericParameterBase.cs
@@ -4,11 +4,11 @@
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Reflection;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.Properties;
-using Microsoft.Practices.Unity.Utility;
+using ObjectBuilder2;
+using Unity.Properties;
+using Unity.Utility;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// Base class for subclasses that let you specify that
diff --git a/source/Unity/Src/Injection/GenericResolvedArrayParameter.cs b/source/Src/Unity-CoreClr/Injection/GenericResolvedArrayParameter.cs
similarity index 97%
rename from source/Unity/Src/Injection/GenericResolvedArrayParameter.cs
rename to source/Src/Unity-CoreClr/Injection/GenericResolvedArrayParameter.cs
index fd38a324..fd645877 100644
--- a/source/Unity/Src/Injection/GenericResolvedArrayParameter.cs
+++ b/source/Src/Unity-CoreClr/Injection/GenericResolvedArrayParameter.cs
@@ -5,11 +5,11 @@
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Reflection;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.Properties;
-using Microsoft.Practices.Unity.Utility;
+using ObjectBuilder2;
+using Unity.Properties;
+using Unity.Utility;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A that lets you specify that
diff --git a/source/Unity/Src/Injection/InjectedMembers.cs b/source/Src/Unity-CoreClr/Injection/InjectedMembers.cs
similarity index 99%
rename from source/Unity/Src/Injection/InjectedMembers.cs
rename to source/Src/Unity-CoreClr/Injection/InjectedMembers.cs
index 2bd6a65a..05fa0157 100644
--- a/source/Unity/Src/Injection/InjectedMembers.cs
+++ b/source/Src/Unity-CoreClr/Injection/InjectedMembers.cs
@@ -2,7 +2,7 @@
using System;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A Unity container extension that allows you to configure
diff --git a/source/Unity/Src/Injection/InjectionConstructor.cs b/source/Src/Unity-CoreClr/Injection/InjectionConstructor.cs
similarity index 93%
rename from source/Unity/Src/Injection/InjectionConstructor.cs
rename to source/Src/Unity-CoreClr/Injection/InjectionConstructor.cs
index ceee28c9..1b76e989 100644
--- a/source/Unity/Src/Injection/InjectionConstructor.cs
+++ b/source/Src/Unity-CoreClr/Injection/InjectionConstructor.cs
@@ -5,12 +5,12 @@
using System.Globalization;
using System.Linq;
using System.Reflection;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.ObjectBuilder;
-using Microsoft.Practices.Unity.Properties;
-using Microsoft.Practices.Unity.Utility;
+using ObjectBuilder2;
+using Unity.ObjectBuilder;
+using Unity.Properties;
+using Unity.Utility;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A class that holds the collection of information
diff --git a/source/Unity/Src/Injection/InjectionFactory.cs b/source/Src/Unity-CoreClr/Injection/InjectionFactory.cs
similarity index 95%
rename from source/Unity/Src/Injection/InjectionFactory.cs
rename to source/Src/Unity-CoreClr/Injection/InjectionFactory.cs
index e7359dea..fbaa474a 100644
--- a/source/Unity/Src/Injection/InjectionFactory.cs
+++ b/source/Src/Unity-CoreClr/Injection/InjectionFactory.cs
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.Utility;
+using ObjectBuilder2;
+using Unity.Utility;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A class that lets you specify a factory method the container
diff --git a/source/Unity/Src/Injection/InjectionMember.cs b/source/Src/Unity-CoreClr/Injection/InjectionMember.cs
similarity index 95%
rename from source/Unity/Src/Injection/InjectionMember.cs
rename to source/Src/Unity-CoreClr/Injection/InjectionMember.cs
index 0326bc05..1f4e8c3a 100644
--- a/source/Unity/Src/Injection/InjectionMember.cs
+++ b/source/Src/Unity-CoreClr/Injection/InjectionMember.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System;
-using Microsoft.Practices.ObjectBuilder2;
+using ObjectBuilder2;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// Base class for objects that can be used to configure what
diff --git a/source/Unity/Src/Injection/InjectionMethod.cs b/source/Src/Unity-CoreClr/Injection/InjectionMethod.cs
similarity index 95%
rename from source/Unity/Src/Injection/InjectionMethod.cs
rename to source/Src/Unity-CoreClr/Injection/InjectionMethod.cs
index fd1d5857..11410068 100644
--- a/source/Unity/Src/Injection/InjectionMethod.cs
+++ b/source/Src/Unity-CoreClr/Injection/InjectionMethod.cs
@@ -5,12 +5,12 @@
using System.Globalization;
using System.Linq;
using System.Reflection;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.ObjectBuilder;
-using Microsoft.Practices.Unity.Properties;
-using Microsoft.Practices.Unity.Utility;
+using ObjectBuilder2;
+using Unity.ObjectBuilder;
+using Unity.Properties;
+using Unity.Utility;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// An that configures the
@@ -62,7 +62,7 @@ public override void AddPolicies(Type serviceType, Type implementationType, stri
Justification = "Validation done by Guard class")]
protected virtual bool MethodNameMatches(MemberInfo targetMethod, string nameToMatch)
{
- Microsoft.Practices.Unity.Utility.Guard.ArgumentNotNull(targetMethod, "targetMethod");
+ Unity.Utility.Guard.ArgumentNotNull(targetMethod, "targetMethod");
return targetMethod.Name == nameToMatch;
}
diff --git a/source/Unity/Src/Injection/InjectionParameter.cs b/source/Src/Unity-CoreClr/Injection/InjectionParameter.cs
similarity index 94%
rename from source/Unity/Src/Injection/InjectionParameter.cs
rename to source/Src/Unity-CoreClr/Injection/InjectionParameter.cs
index 9e2fc5e0..272456c2 100644
--- a/source/Unity/Src/Injection/InjectionParameter.cs
+++ b/source/Src/Unity-CoreClr/Injection/InjectionParameter.cs
@@ -1,11 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.ObjectBuilder;
-using Microsoft.Practices.Unity.Properties;
+using ObjectBuilder2;
+using Unity.ObjectBuilder;
+using Unity.Properties;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A class that holds on to the given value and provides
diff --git a/source/Unity/Src/Injection/InjectionParameterValue.cs b/source/Src/Unity-CoreClr/Injection/InjectionParameterValue.cs
similarity index 97%
rename from source/Unity/Src/Injection/InjectionParameterValue.cs
rename to source/Src/Unity-CoreClr/Injection/InjectionParameterValue.cs
index 8bc90d13..3c6d65f8 100644
--- a/source/Unity/Src/Injection/InjectionParameterValue.cs
+++ b/source/Src/Unity-CoreClr/Injection/InjectionParameterValue.cs
@@ -3,9 +3,9 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
-using Microsoft.Practices.ObjectBuilder2;
+using ObjectBuilder2;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// Base type for objects that are used to configure parameters for
@@ -51,7 +51,7 @@ public abstract string ParameterTypeName
/// The values to build the sequence from.
/// The resulting converted sequence.
public static IEnumerable ToParameters(params object[] values)
- {
+ {
foreach (object value in values)
{
yield return ToParameter(value);
diff --git a/source/Unity/Src/Injection/InjectionProperty.cs b/source/Src/Unity-CoreClr/Injection/InjectionProperty.cs
similarity index 96%
rename from source/Unity/Src/Injection/InjectionProperty.cs
rename to source/Src/Unity-CoreClr/Injection/InjectionProperty.cs
index 23c759ad..6a51aeb6 100644
--- a/source/Unity/Src/Injection/InjectionProperty.cs
+++ b/source/Src/Unity-CoreClr/Injection/InjectionProperty.cs
@@ -5,12 +5,12 @@
using System.Globalization;
using System.Linq;
using System.Reflection;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.ObjectBuilder;
-using Microsoft.Practices.Unity.Properties;
-using Microsoft.Practices.Unity.Utility;
+using ObjectBuilder2;
+using Unity.ObjectBuilder;
+using Unity.Utility;
+using Unity.Properties;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// This class stores information about which properties to inject,
diff --git a/source/Unity/Src/Injection/OptionalGenericParameter.cs b/source/Src/Unity-CoreClr/Injection/OptionalGenericParameter.cs
similarity index 96%
rename from source/Unity/Src/Injection/OptionalGenericParameter.cs
rename to source/Src/Unity-CoreClr/Injection/OptionalGenericParameter.cs
index 15075f9b..8c4f4f25 100644
--- a/source/Unity/Src/Injection/OptionalGenericParameter.cs
+++ b/source/Src/Unity-CoreClr/Injection/OptionalGenericParameter.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System;
-using Microsoft.Practices.ObjectBuilder2;
+using ObjectBuilder2;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A that lets you specify that
diff --git a/source/Unity/Src/Injection/OptionalParameter.cs b/source/Src/Unity-CoreClr/Injection/OptionalParameter.cs
similarity index 96%
rename from source/Unity/Src/Injection/OptionalParameter.cs
rename to source/Src/Unity-CoreClr/Injection/OptionalParameter.cs
index 22277823..82549ff1 100644
--- a/source/Unity/Src/Injection/OptionalParameter.cs
+++ b/source/Src/Unity-CoreClr/Injection/OptionalParameter.cs
@@ -5,10 +5,10 @@
using System.Linq;
using System.Reflection;
using System.Text;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.Utility;
+using ObjectBuilder2;
+using Unity.Utility;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A that can be passed to
diff --git a/source/Unity/Src/Injection/ResolvedArrayParameter.cs b/source/Src/Unity-CoreClr/Injection/ResolvedArrayParameter.cs
similarity index 95%
rename from source/Unity/Src/Injection/ResolvedArrayParameter.cs
rename to source/Src/Unity-CoreClr/Injection/ResolvedArrayParameter.cs
index 93fba52d..cfaf1deb 100644
--- a/source/Unity/Src/Injection/ResolvedArrayParameter.cs
+++ b/source/Src/Unity-CoreClr/Injection/ResolvedArrayParameter.cs
@@ -3,12 +3,12 @@
using System;
using System.Collections.Generic;
using System.Globalization;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.ObjectBuilder;
-using Microsoft.Practices.Unity.Properties;
-using Microsoft.Practices.Unity.Utility;
+using ObjectBuilder2;
+using Unity.ObjectBuilder;
+using Unity.Properties;
+using Unity.Utility;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A class that stores a type, and generates a
diff --git a/source/Unity/Src/Injection/ResolvedParameter.cs b/source/Src/Unity-CoreClr/Injection/ResolvedParameter.cs
similarity index 95%
rename from source/Unity/Src/Injection/ResolvedParameter.cs
rename to source/Src/Unity-CoreClr/Injection/ResolvedParameter.cs
index c849944e..6eb68afc 100644
--- a/source/Unity/Src/Injection/ResolvedParameter.cs
+++ b/source/Src/Unity-CoreClr/Injection/ResolvedParameter.cs
@@ -2,12 +2,12 @@
using System;
using System.Reflection;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.ObjectBuilder;
-using Microsoft.Practices.Unity.Utility;
-using Guard = Microsoft.Practices.Unity.Utility.Guard;
+using ObjectBuilder2;
+using Unity.ObjectBuilder;
+using Unity.Utility;
+using Guard = Unity.Utility.Guard;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A class that stores a name and type, and generates a
diff --git a/source/Unity/Src/Injection/TypedInjectionValue.cs b/source/Src/Unity-CoreClr/Injection/TypedInjectionValue.cs
similarity index 97%
rename from source/Unity/Src/Injection/TypedInjectionValue.cs
rename to source/Src/Unity-CoreClr/Injection/TypedInjectionValue.cs
index 0e8f08af..72aeb204 100644
--- a/source/Unity/Src/Injection/TypedInjectionValue.cs
+++ b/source/Src/Unity-CoreClr/Injection/TypedInjectionValue.cs
@@ -2,9 +2,9 @@
using System;
using System.Reflection;
-using Microsoft.Practices.Unity.Utility;
+using Unity.Utility;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A base class for implementing classes
diff --git a/source/Unity/Src/Lifetime/ContainerControlledLifetimeManager.cs b/source/Src/Unity-CoreClr/Lifetime/ContainerControlledLifetimeManager.cs
similarity index 96%
rename from source/Unity/Src/Lifetime/ContainerControlledLifetimeManager.cs
rename to source/Src/Unity-CoreClr/Lifetime/ContainerControlledLifetimeManager.cs
index 68822dc6..3f5eb35a 100644
--- a/source/Unity/Src/Lifetime/ContainerControlledLifetimeManager.cs
+++ b/source/Src/Unity-CoreClr/Lifetime/ContainerControlledLifetimeManager.cs
@@ -3,9 +3,9 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Threading;
-using Microsoft.Practices.ObjectBuilder2;
+using ObjectBuilder2;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A that holds onto the instance given to it.
diff --git a/source/Unity/Src/Lifetime/ExternallyControlledLifetimeManager.cs b/source/Src/Unity-CoreClr/Lifetime/ExternallyControlledLifetimeManager.cs
similarity index 97%
rename from source/Unity/Src/Lifetime/ExternallyControlledLifetimeManager.cs
rename to source/Src/Unity-CoreClr/Lifetime/ExternallyControlledLifetimeManager.cs
index e3263f18..d52de8ff 100644
--- a/source/Unity/Src/Lifetime/ExternallyControlledLifetimeManager.cs
+++ b/source/Src/Unity-CoreClr/Lifetime/ExternallyControlledLifetimeManager.cs
@@ -2,7 +2,7 @@
using System;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A that holds a weak reference to
diff --git a/source/Unity/Src/Lifetime/HierarchicalLifetimeManager.cs b/source/Src/Unity-CoreClr/Lifetime/HierarchicalLifetimeManager.cs
similarity index 94%
rename from source/Unity/Src/Lifetime/HierarchicalLifetimeManager.cs
rename to source/Src/Unity-CoreClr/Lifetime/HierarchicalLifetimeManager.cs
index be02348b..ec97aff2 100644
--- a/source/Unity/Src/Lifetime/HierarchicalLifetimeManager.cs
+++ b/source/Src/Unity-CoreClr/Lifetime/HierarchicalLifetimeManager.cs
@@ -5,7 +5,7 @@
using System.Linq;
using System.Text;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A special lifetime manager which works like ,
diff --git a/source/Unity/Src/Lifetime/LifetimeManager.cs b/source/Src/Unity-CoreClr/Lifetime/LifetimeManager.cs
similarity index 95%
rename from source/Unity/Src/Lifetime/LifetimeManager.cs
rename to source/Src/Unity-CoreClr/Lifetime/LifetimeManager.cs
index 9a954b75..ca55c449 100644
--- a/source/Unity/Src/Lifetime/LifetimeManager.cs
+++ b/source/Src/Unity-CoreClr/Lifetime/LifetimeManager.cs
@@ -1,8 +1,8 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-using Microsoft.Practices.ObjectBuilder2;
+using ObjectBuilder2;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// Base class for Lifetime managers - classes that control how
diff --git a/source/Unity/Src/Lifetime/LifetimeManagerFactory.cs b/source/Src/Unity-CoreClr/Lifetime/LifetimeManagerFactory.cs
similarity index 95%
rename from source/Unity/Src/Lifetime/LifetimeManagerFactory.cs
rename to source/Src/Unity-CoreClr/Lifetime/LifetimeManagerFactory.cs
index 7a88134d..44ecc59f 100644
--- a/source/Unity/Src/Lifetime/LifetimeManagerFactory.cs
+++ b/source/Src/Unity-CoreClr/Lifetime/LifetimeManagerFactory.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System;
-using Microsoft.Practices.ObjectBuilder2;
+using ObjectBuilder2;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// An implementation of that
diff --git a/source/Unity/Src/Lifetime/PerResolveLifetimeManager.cs b/source/Src/Unity-CoreClr/Lifetime/PerResolveLifetimeManager.cs
similarity index 98%
rename from source/Unity/Src/Lifetime/PerResolveLifetimeManager.cs
rename to source/Src/Unity-CoreClr/Lifetime/PerResolveLifetimeManager.cs
index 9d8f3ee0..166a73ad 100644
--- a/source/Unity/Src/Lifetime/PerResolveLifetimeManager.cs
+++ b/source/Src/Unity-CoreClr/Lifetime/PerResolveLifetimeManager.cs
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// This is a custom lifetime manager that acts like ,
diff --git a/source/Unity/Src/Lifetime/PerThreadLifetimeManager.cs b/source/Src/Unity-CoreClr/Lifetime/PerThreadLifetimeManager.cs
similarity index 98%
rename from source/Unity/Src/Lifetime/PerThreadLifetimeManager.cs
rename to source/Src/Unity-CoreClr/Lifetime/PerThreadLifetimeManager.cs
index 563e0d78..1cf33462 100644
--- a/source/Unity/Src/Lifetime/PerThreadLifetimeManager.cs
+++ b/source/Src/Unity-CoreClr/Lifetime/PerThreadLifetimeManager.cs
@@ -3,7 +3,7 @@
using System;
using System.Collections.Generic;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A that holds the instances given to it,
diff --git a/source/Unity/Src/Lifetime/SynchronizedLifetimeManager.cs b/source/Src/Unity-CoreClr/Lifetime/SynchronizedLifetimeManager.cs
similarity index 98%
rename from source/Unity/Src/Lifetime/SynchronizedLifetimeManager.cs
rename to source/Src/Unity-CoreClr/Lifetime/SynchronizedLifetimeManager.cs
index 23ea9112..71c05c48 100644
--- a/source/Unity/Src/Lifetime/SynchronizedLifetimeManager.cs
+++ b/source/Src/Unity-CoreClr/Lifetime/SynchronizedLifetimeManager.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System.Threading;
-using Microsoft.Practices.ObjectBuilder2;
+using ObjectBuilder2;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// Base class for Lifetime managers which need to synchronize calls to
diff --git a/source/Unity/Src/Lifetime/TransientLifetimeManager.cs b/source/Src/Unity-CoreClr/Lifetime/TransientLifetimeManager.cs
similarity index 96%
rename from source/Unity/Src/Lifetime/TransientLifetimeManager.cs
rename to source/Src/Unity-CoreClr/Lifetime/TransientLifetimeManager.cs
index 2f8787a0..aa4cad72 100644
--- a/source/Unity/Src/Lifetime/TransientLifetimeManager.cs
+++ b/source/Src/Unity-CoreClr/Lifetime/TransientLifetimeManager.cs
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// An implementation that does nothing,
diff --git a/source/Unity/Src/NamedTypesRegistry.cs b/source/Src/Unity-CoreClr/NamedTypesRegistry.cs
similarity index 98%
rename from source/Unity/Src/NamedTypesRegistry.cs
rename to source/Src/Unity-CoreClr/NamedTypesRegistry.cs
index 0afdb9f0..2078f652 100644
--- a/source/Unity/Src/NamedTypesRegistry.cs
+++ b/source/Src/Unity-CoreClr/NamedTypesRegistry.cs
@@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.Linq;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A helper class to manage the names that get registered in the container
diff --git a/source/Unity/Src/ObjectBuilder/BuilderContext.cs b/source/Src/Unity-CoreClr/ObjectBuilder/BuilderContext.cs
similarity index 99%
rename from source/Unity/Src/ObjectBuilder/BuilderContext.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/BuilderContext.cs
index f8252705..f7866a92 100644
--- a/source/Unity/Src/ObjectBuilder/BuilderContext.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/BuilderContext.cs
@@ -3,10 +3,10 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
-using Microsoft.Practices.Unity;
-using Microsoft.Practices.Unity.Utility;
+using Unity;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Represents the context in which a build-up or tear-down operation runs.
diff --git a/source/Unity/Src/ObjectBuilder/Exceptions/DependencyMissingException.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Exceptions/DependencyMissingException.cs
similarity index 95%
rename from source/Unity/Src/ObjectBuilder/Exceptions/DependencyMissingException.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Exceptions/DependencyMissingException.cs
index 0794ddfb..3faf5711 100644
--- a/source/Unity/Src/ObjectBuilder/Exceptions/DependencyMissingException.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Exceptions/DependencyMissingException.cs
@@ -2,9 +2,9 @@
using System;
using System.Globalization;
-using Microsoft.Practices.Unity.Properties;
+using Unity.Properties;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Represents that a dependency could not be resolved.
diff --git a/source/Unity/Src/ObjectBuilder/Exceptions/IllegalInjectionMethodException.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Exceptions/IllegalInjectionMethodException.cs
similarity index 94%
rename from source/Unity/Src/ObjectBuilder/Exceptions/IllegalInjectionMethodException.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Exceptions/IllegalInjectionMethodException.cs
index 8b162be1..3be68647 100644
--- a/source/Unity/Src/ObjectBuilder/Exceptions/IllegalInjectionMethodException.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Exceptions/IllegalInjectionMethodException.cs
@@ -1,9 +1,8 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System;
-using System.Runtime.Serialization;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// The exception thrown when injection is attempted on a method
diff --git a/source/Unity/Src/ObjectBuilder/IBuilderContext.cs b/source/Src/Unity-CoreClr/ObjectBuilder/IBuilderContext.cs
similarity index 98%
rename from source/Unity/Src/ObjectBuilder/IBuilderContext.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/IBuilderContext.cs
index b26dc4b4..16a16b15 100644
--- a/source/Unity/Src/ObjectBuilder/IBuilderContext.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/IBuilderContext.cs
@@ -3,10 +3,10 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
-using Microsoft.Practices.Unity;
-using Microsoft.Practices.Unity.Utility;
+using Unity;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Represents the context in which a build-up or tear-down operation runs.
diff --git a/source/Unity/Src/ObjectBuilder/IRecoveryStack.cs b/source/Src/Unity-CoreClr/ObjectBuilder/IRecoveryStack.cs
similarity index 96%
rename from source/Unity/Src/ObjectBuilder/IRecoveryStack.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/IRecoveryStack.cs
index 1a202f14..c87126f1 100644
--- a/source/Unity/Src/ObjectBuilder/IRecoveryStack.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/IRecoveryStack.cs
@@ -2,7 +2,7 @@
using System.Diagnostics.CodeAnalysis;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Data structure that stores the set of
diff --git a/source/Unity/Src/ObjectBuilder/IRequiresRecovery.cs b/source/Src/Unity-CoreClr/ObjectBuilder/IRequiresRecovery.cs
similarity index 95%
rename from source/Unity/Src/ObjectBuilder/IRequiresRecovery.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/IRequiresRecovery.cs
index 14d7cfe6..7c82a8ae 100644
--- a/source/Unity/Src/ObjectBuilder/IRequiresRecovery.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/IRequiresRecovery.cs
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// This interface provides a hook for the builder context to
diff --git a/source/Unity/Src/ObjectBuilder/Lifetime/ILifetimeContainer.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Lifetime/ILifetimeContainer.cs
similarity index 97%
rename from source/Unity/Src/ObjectBuilder/Lifetime/ILifetimeContainer.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Lifetime/ILifetimeContainer.cs
index 31a22ff7..fbf7cc14 100644
--- a/source/Unity/Src/ObjectBuilder/Lifetime/ILifetimeContainer.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Lifetime/ILifetimeContainer.cs
@@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Represents a lifetime container.
diff --git a/source/Unity/Src/ObjectBuilder/Lifetime/LifetimeContainer.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Lifetime/LifetimeContainer.cs
similarity index 99%
rename from source/Unity/Src/ObjectBuilder/Lifetime/LifetimeContainer.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Lifetime/LifetimeContainer.cs
index 21f8c937..ca9a0f07 100644
--- a/source/Unity/Src/ObjectBuilder/Lifetime/LifetimeContainer.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Lifetime/LifetimeContainer.cs
@@ -5,7 +5,7 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Represents a lifetime container.
diff --git a/source/Unity/Src/ObjectBuilder/Policies/IBuilderPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Policies/IBuilderPolicy.cs
similarity index 92%
rename from source/Unity/Src/ObjectBuilder/Policies/IBuilderPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Policies/IBuilderPolicy.cs
index a4629fa6..93657852 100644
--- a/source/Unity/Src/ObjectBuilder/Policies/IBuilderPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Policies/IBuilderPolicy.cs
@@ -2,7 +2,7 @@
using System.Diagnostics.CodeAnalysis;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Represents a builder policy interface. Since there are no fixed requirements
diff --git a/source/Unity/Src/ObjectBuilder/Policies/IPolicyList.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Policies/IPolicyList.cs
similarity index 98%
rename from source/Unity/Src/ObjectBuilder/Policies/IPolicyList.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Policies/IPolicyList.cs
index 0d818cc5..9d4f3e16 100644
--- a/source/Unity/Src/ObjectBuilder/Policies/IPolicyList.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Policies/IPolicyList.cs
@@ -3,7 +3,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// A custom collection over objects.
diff --git a/source/Unity/Src/ObjectBuilder/Policies/PolicyList.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Policies/PolicyList.cs
similarity index 99%
rename from source/Unity/Src/ObjectBuilder/Policies/PolicyList.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Policies/PolicyList.cs
index 7157d0ec..063cf5e9 100644
--- a/source/Unity/Src/ObjectBuilder/Policies/PolicyList.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Policies/PolicyList.cs
@@ -4,9 +4,9 @@
using System.Collections.Generic;
using System.Globalization;
using System.Reflection;
-using Microsoft.Practices.Unity.Properties;
+using Unity.Properties;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// A custom collection wrapper over objects.
diff --git a/source/Unity/Src/ObjectBuilder/Policies/PolicyListExtensions.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Policies/PolicyListExtensions.cs
similarity index 98%
rename from source/Unity/Src/ObjectBuilder/Policies/PolicyListExtensions.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Policies/PolicyListExtensions.cs
index c8a5e890..d13195cf 100644
--- a/source/Unity/Src/ObjectBuilder/Policies/PolicyListExtensions.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Policies/PolicyListExtensions.cs
@@ -2,9 +2,9 @@
using System;
using System.Diagnostics.CodeAnalysis;
-using Microsoft.Practices.Unity.Utility;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Extension methods on to provide convenience
@@ -257,7 +257,7 @@ public static void Set(this IPolicyList policies, TPolicyInter
public static void SetDefault(this IPolicyList policies, TPolicyInterface policy)
where TPolicyInterface : IBuilderPolicy
{
- Microsoft.Practices.Unity.Utility.Guard.ArgumentNotNull(policies, "policies");
+ Unity.Utility.Guard.ArgumentNotNull(policies, "policies");
policies.SetDefault(typeof(TPolicyInterface), policy);
}
diff --git a/source/Unity/Src/ObjectBuilder/RecoveryStack.cs b/source/Src/Unity-CoreClr/ObjectBuilder/RecoveryStack.cs
similarity index 95%
rename from source/Unity/Src/ObjectBuilder/RecoveryStack.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/RecoveryStack.cs
index cabfdcdd..24c4f5e6 100644
--- a/source/Unity/Src/ObjectBuilder/RecoveryStack.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/RecoveryStack.cs
@@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
-using Microsoft.Practices.Unity.Utility;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// An implementation of .
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildKeyMapping/BuildKeyMappingPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildKeyMapping/BuildKeyMappingPolicy.cs
similarity index 96%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildKeyMapping/BuildKeyMappingPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildKeyMapping/BuildKeyMappingPolicy.cs
index d227f61a..84be4190 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildKeyMapping/BuildKeyMappingPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildKeyMapping/BuildKeyMappingPolicy.cs
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Represents a builder policy for mapping build keys.
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildKeyMapping/BuildKeyMappingStrategy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildKeyMapping/BuildKeyMappingStrategy.cs
similarity index 93%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildKeyMapping/BuildKeyMappingStrategy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildKeyMapping/BuildKeyMappingStrategy.cs
index 06c17659..bba5ff15 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildKeyMapping/BuildKeyMappingStrategy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildKeyMapping/BuildKeyMappingStrategy.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System.Diagnostics.CodeAnalysis;
-using Microsoft.Practices.Unity.Utility;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Represents a strategy for mapping build keys in the build up operation.
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildKeyMapping/GenericTypeBuildKeyMappingPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildKeyMapping/GenericTypeBuildKeyMappingPolicy.cs
similarity index 96%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildKeyMapping/GenericTypeBuildKeyMappingPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildKeyMapping/GenericTypeBuildKeyMappingPolicy.cs
index e15e6cbd..6f3f2c7a 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildKeyMapping/GenericTypeBuildKeyMappingPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildKeyMapping/GenericTypeBuildKeyMappingPolicy.cs
@@ -4,10 +4,10 @@
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Reflection;
-using Microsoft.Practices.Unity.Properties;
-using Microsoft.Practices.Unity.Utility;
+using Unity.Properties;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// An implementation of that can map
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildKeyMapping/IBuildKeyMappingPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildKeyMapping/IBuildKeyMappingPolicy.cs
similarity index 94%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildKeyMapping/IBuildKeyMappingPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildKeyMapping/IBuildKeyMappingPolicy.cs
index c263422a..5903146b 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildKeyMapping/IBuildKeyMappingPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildKeyMapping/IBuildKeyMappingPolicy.cs
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Represents a builder policy for mapping build keys.
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/BuildOperation.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/BuildOperation.cs
similarity index 94%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/BuildOperation.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/BuildOperation.cs
index 75a88991..2d18b8f1 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/BuildOperation.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/BuildOperation.cs
@@ -2,7 +2,7 @@
using System;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Base class for the current operation stored in the build context.
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/BuildPlanStrategy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/BuildPlanStrategy.cs
similarity index 95%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/BuildPlanStrategy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/BuildPlanStrategy.cs
index 8cc9c068..6f112486 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/BuildPlanStrategy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/BuildPlanStrategy.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System.Diagnostics.CodeAnalysis;
-using Microsoft.Practices.Unity.Utility;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// A that will look for a build plan
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Creation/ConstructorSelectorPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Creation/ConstructorSelectorPolicy.cs
similarity index 95%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Creation/ConstructorSelectorPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Creation/ConstructorSelectorPolicy.cs
index 595009b1..0bee2d88 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Creation/ConstructorSelectorPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Creation/ConstructorSelectorPolicy.cs
@@ -3,9 +3,9 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
-using Microsoft.Practices.Unity.Utility;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// An implementation of that chooses
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Creation/ConstructorSelectorPolicyBase.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Creation/ConstructorSelectorPolicyBase.cs
similarity index 97%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Creation/ConstructorSelectorPolicyBase.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Creation/ConstructorSelectorPolicyBase.cs
index 9070c822..a4c76cd1 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Creation/ConstructorSelectorPolicyBase.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Creation/ConstructorSelectorPolicyBase.cs
@@ -6,10 +6,10 @@
using System.Globalization;
using System.Linq;
using System.Reflection;
-using Microsoft.Practices.Unity.Properties;
-using Microsoft.Practices.Unity.Utility;
+using Unity.Properties;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Base class that provides an implementation of
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Creation/IConstructorSelectorPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Creation/IConstructorSelectorPolicy.cs
similarity index 95%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Creation/IConstructorSelectorPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Creation/IConstructorSelectorPolicy.cs
index c9ac16fe..2e08cc3d 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Creation/IConstructorSelectorPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Creation/IConstructorSelectorPolicy.cs
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// A that, when implemented,
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Creation/SelectedConstructor.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Creation/SelectedConstructor.cs
similarity index 96%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Creation/SelectedConstructor.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Creation/SelectedConstructor.cs
index 6e5ce711..3ef154e4 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Creation/SelectedConstructor.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Creation/SelectedConstructor.cs
@@ -2,7 +2,7 @@
using System.Reflection;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Objects of this type are the return value from .
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Creation/SelectedMemberWithParameters.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Creation/SelectedMemberWithParameters.cs
similarity index 97%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Creation/SelectedMemberWithParameters.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Creation/SelectedMemberWithParameters.cs
index d41fb318..15947b22 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Creation/SelectedMemberWithParameters.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Creation/SelectedMemberWithParameters.cs
@@ -2,7 +2,7 @@
using System.Collections.Generic;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Base class for return of selector policies that need
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Creation/ConstructorArgumentResolveOperation.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Creation/ConstructorArgumentResolveOperation.cs
similarity index 96%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Creation/ConstructorArgumentResolveOperation.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Creation/ConstructorArgumentResolveOperation.cs
index 492305a6..99cf2dd9 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Creation/ConstructorArgumentResolveOperation.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Creation/ConstructorArgumentResolveOperation.cs
@@ -4,9 +4,9 @@
using System.Collections.Generic;
using System.Globalization;
using System.Text;
-using Microsoft.Practices.Unity.Properties;
+using Unity.Properties;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// This class records the information about which constructor argument is currently
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Creation/DynamicMethodConstructorStrategy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Creation/DynamicMethodConstructorStrategy.cs
similarity index 99%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Creation/DynamicMethodConstructorStrategy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Creation/DynamicMethodConstructorStrategy.cs
index decb2998..aee436d7 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Creation/DynamicMethodConstructorStrategy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Creation/DynamicMethodConstructorStrategy.cs
@@ -7,11 +7,11 @@
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
-using Microsoft.Practices.Unity;
-using Microsoft.Practices.Unity.Properties;
-using Microsoft.Practices.Unity.Utility;
+using Unity;
+using Unity.Properties;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// A that emits IL to call constructors
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Creation/InvokingConstructorOperation.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Creation/InvokingConstructorOperation.cs
similarity index 94%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Creation/InvokingConstructorOperation.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Creation/InvokingConstructorOperation.cs
index d55060fc..053523a8 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Creation/InvokingConstructorOperation.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Creation/InvokingConstructorOperation.cs
@@ -2,9 +2,9 @@
using System;
using System.Globalization;
-using Microsoft.Practices.Unity.Properties;
+using Unity.Properties;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// A class that records that a constructor is about to be call, and is
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/DynamicBuildPlanGenerationContext.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/DynamicBuildPlanGenerationContext.cs
similarity index 99%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/DynamicBuildPlanGenerationContext.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/DynamicBuildPlanGenerationContext.cs
index ffcd7f31..1fe6e11b 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/DynamicBuildPlanGenerationContext.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/DynamicBuildPlanGenerationContext.cs
@@ -6,9 +6,9 @@
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
-using Microsoft.Practices.Unity.Utility;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
///
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/DynamicMethodBuildPlan.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/DynamicMethodBuildPlan.cs
similarity index 95%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/DynamicMethodBuildPlan.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/DynamicMethodBuildPlan.cs
index 7329cd73..a77b3704 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/DynamicMethodBuildPlan.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/DynamicMethodBuildPlan.cs
@@ -5,7 +5,7 @@
using System.Text;
using System.Threading.Tasks;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
///
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/DynamicMethodBuildPlanCreatorPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/DynamicMethodBuildPlanCreatorPolicy.cs
similarity index 96%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/DynamicMethodBuildPlanCreatorPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/DynamicMethodBuildPlanCreatorPolicy.cs
index d1ec083a..8f288f73 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/DynamicMethodBuildPlanCreatorPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/DynamicMethodBuildPlanCreatorPolicy.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System.Diagnostics.CodeAnalysis;
-using Microsoft.Practices.Unity.Utility;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// An implementation
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Method/DynamicMethodCallStrategy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Method/DynamicMethodCallStrategy.cs
similarity index 98%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Method/DynamicMethodCallStrategy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Method/DynamicMethodCallStrategy.cs
index b9be6d32..42651069 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Method/DynamicMethodCallStrategy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Method/DynamicMethodCallStrategy.cs
@@ -6,10 +6,10 @@
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
-using Microsoft.Practices.Unity.Properties;
-using Microsoft.Practices.Unity.Utility;
+using Unity.Properties;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// A that generates IL to call
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Method/InvokingMethodOperation.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Method/InvokingMethodOperation.cs
similarity index 94%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Method/InvokingMethodOperation.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Method/InvokingMethodOperation.cs
index 53ccde67..a1b7105f 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Method/InvokingMethodOperation.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Method/InvokingMethodOperation.cs
@@ -3,9 +3,9 @@
using System;
using System.Globalization;
using System.Reflection;
-using Microsoft.Practices.Unity.Properties;
+using Unity.Properties;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// A class that records that a constructor is about to be call, and is
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Method/MethodArgumentResolveOperation.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Method/MethodArgumentResolveOperation.cs
similarity index 96%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Method/MethodArgumentResolveOperation.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Method/MethodArgumentResolveOperation.cs
index 1bdb7aa3..458b1437 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Method/MethodArgumentResolveOperation.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Method/MethodArgumentResolveOperation.cs
@@ -5,9 +5,9 @@
using System.Globalization;
using System.Reflection;
using System.Text;
-using Microsoft.Practices.Unity.Properties;
+using Unity.Properties;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// This class records the information about which constructor argument is currently
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/DynamicMethodPropertySetterStrategy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/DynamicMethodPropertySetterStrategy.cs
similarity index 97%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/DynamicMethodPropertySetterStrategy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/DynamicMethodPropertySetterStrategy.cs
index 305ee7e2..c4f543ab 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/DynamicMethodPropertySetterStrategy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/DynamicMethodPropertySetterStrategy.cs
@@ -6,10 +6,10 @@
using System.Globalization;
using System.Linq.Expressions;
using System.Reflection;
-using Microsoft.Practices.Unity.Properties;
-using Microsoft.Practices.Unity.Utility;
+using Unity.Properties;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// A that generates IL to resolve properties
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/PropertyOperation.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/PropertyOperation.cs
similarity index 97%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/PropertyOperation.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/PropertyOperation.cs
index d2da167b..ed9ef0ce 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/PropertyOperation.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/PropertyOperation.cs
@@ -5,7 +5,7 @@
using System.Globalization;
using System.Reflection;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// A base class that holds the information shared by all operations
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/ResolvingPropertyValueOperation.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/ResolvingPropertyValueOperation.cs
similarity index 92%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/ResolvingPropertyValueOperation.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/ResolvingPropertyValueOperation.cs
index 42695145..d63a745a 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/ResolvingPropertyValueOperation.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/ResolvingPropertyValueOperation.cs
@@ -2,9 +2,9 @@
using System;
using System.Globalization;
-using Microsoft.Practices.Unity.Properties;
+using Unity.Properties;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// This class records the information about which property value is currently
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/SettingPropertyOperation.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/SettingPropertyOperation.cs
similarity index 93%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/SettingPropertyOperation.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/SettingPropertyOperation.cs
index 45a5cf50..92cd6fd2 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/SettingPropertyOperation.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/DynamicMethod/Property/SettingPropertyOperation.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System;
-using Microsoft.Practices.Unity.Properties;
+using Unity.Properties;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// This class records the information about which property value is currently
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Factory/DeferredResolveBuildPlanPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Factory/DeferredResolveBuildPlanPolicy.cs
similarity index 97%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Factory/DeferredResolveBuildPlanPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Factory/DeferredResolveBuildPlanPolicy.cs
index 9177b4df..a58165b0 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Factory/DeferredResolveBuildPlanPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Factory/DeferredResolveBuildPlanPolicy.cs
@@ -4,10 +4,10 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
-using Microsoft.Practices.Unity;
-using Microsoft.Practices.Unity.Utility;
+using Unity;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Build plan for that will return a Func that will resolve the requested type
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Factory/FactoryDelegateBuildPlanPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Factory/FactoryDelegateBuildPlanPolicy.cs
similarity index 88%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Factory/FactoryDelegateBuildPlanPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Factory/FactoryDelegateBuildPlanPolicy.cs
index 7faced43..0e6e18fd 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Factory/FactoryDelegateBuildPlanPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Factory/FactoryDelegateBuildPlanPolicy.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System;
-using Microsoft.Practices.Unity;
+using Unity;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
internal class FactoryDelegateBuildPlanPolicy : IBuildPlanPolicy
{
@@ -22,7 +22,7 @@ public FactoryDelegateBuildPlanPolicy(Func
/// A that can create and return an
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/IBuildPlanPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/IBuildPlanPolicy.cs
similarity index 95%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/IBuildPlanPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/IBuildPlanPolicy.cs
index 7714aa5a..3242b1e3 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/IBuildPlanPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/IBuildPlanPolicy.cs
@@ -2,7 +2,7 @@
using System.Diagnostics.CodeAnalysis;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// A build plan is an object that, when invoked, will create a new object
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Lazy/LazyDynamicMethodBuildPlanCreatorPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Lazy/LazyDynamicMethodBuildPlanCreatorPolicy.cs
similarity index 96%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Lazy/LazyDynamicMethodBuildPlanCreatorPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Lazy/LazyDynamicMethodBuildPlanCreatorPolicy.cs
index 06059711..bbc8a79f 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Lazy/LazyDynamicMethodBuildPlanCreatorPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Lazy/LazyDynamicMethodBuildPlanCreatorPolicy.cs
@@ -3,10 +3,10 @@
using System;
using System.Collections.Generic;
using System.Reflection;
-using Microsoft.Practices.Unity;
-using Microsoft.Practices.Unity.Utility;
+using Unity;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// An implementation
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Method/IMethodSelectorPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Method/IMethodSelectorPolicy.cs
similarity index 95%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Method/IMethodSelectorPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Method/IMethodSelectorPolicy.cs
index c6738b79..a5e5840e 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Method/IMethodSelectorPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Method/IMethodSelectorPolicy.cs
@@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Reflection;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// An that will examine the given
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Method/MethodSelectorPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Method/MethodSelectorPolicy.cs
similarity index 90%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Method/MethodSelectorPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Method/MethodSelectorPolicy.cs
index 5db43144..a00b0324 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Method/MethodSelectorPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Method/MethodSelectorPolicy.cs
@@ -3,7 +3,7 @@
using System;
using System.Reflection;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// An implementation of that selects
@@ -25,7 +25,7 @@ public class MethodSelectorPolicy : MethodSelectorPolicyBase
/// Base class that provides an implementation of
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Method/SelectedMethod.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Method/SelectedMethod.cs
similarity index 95%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Method/SelectedMethod.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Method/SelectedMethod.cs
index de11e182..984eeb09 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Method/SelectedMethod.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Method/SelectedMethod.cs
@@ -2,7 +2,7 @@
using System.Reflection;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Objects of this type are the return value from .
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/OverriddenBuildPlanMarkerPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/OverriddenBuildPlanMarkerPolicy.cs
similarity index 82%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/OverriddenBuildPlanMarkerPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/OverriddenBuildPlanMarkerPolicy.cs
index df00a1db..2fd77146 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/OverriddenBuildPlanMarkerPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/OverriddenBuildPlanMarkerPolicy.cs
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.Properties;
+using ObjectBuilder2;
+using Unity.Properties;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
internal class OverriddenBuildPlanMarkerPolicy : IBuildPlanPolicy
{
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Property/IPropertySelectorPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Property/IPropertySelectorPolicy.cs
similarity index 95%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Property/IPropertySelectorPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Property/IPropertySelectorPolicy.cs
index f894bf78..0fda08c8 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Property/IPropertySelectorPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Property/IPropertySelectorPolicy.cs
@@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Reflection;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// An that returns a sequence
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Property/PropertySelectorBase.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Property/PropertySelectorBase.cs
similarity index 97%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Property/PropertySelectorBase.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Property/PropertySelectorBase.cs
index b6476e8a..acaf35dd 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Property/PropertySelectorBase.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Property/PropertySelectorBase.cs
@@ -5,9 +5,9 @@
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Reflection;
-using Microsoft.Practices.Unity.Utility;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Base class that provides an implementation of
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Property/PropertySelectorPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Property/PropertySelectorPolicy.cs
similarity index 90%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Property/PropertySelectorPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Property/PropertySelectorPolicy.cs
index 51d5ca07..5e2cad76 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Property/PropertySelectorPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Property/PropertySelectorPolicy.cs
@@ -3,7 +3,7 @@
using System;
using System.Reflection;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// An implementation of that looks
@@ -24,7 +24,7 @@ public class PropertySelectorPolicy : PropertySelectorBase
Justification = "Validation done by Guard class")]
protected override IDependencyResolverPolicy CreateResolver(PropertyInfo property)
{
- Microsoft.Practices.Unity.Utility.Guard.ArgumentNotNull(property, "property");
+ Unity.Utility.Guard.ArgumentNotNull(property, "property");
return new FixedTypeResolverPolicy(property.PropertyType);
}
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Property/SelectedProperty.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Property/SelectedProperty.cs
similarity index 97%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Property/SelectedProperty.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Property/SelectedProperty.cs
index 92722d7a..6c2acd75 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Property/SelectedProperty.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Property/SelectedProperty.cs
@@ -2,7 +2,7 @@
using System.Reflection;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Objects of this type are returned from
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Resolution/DependencyResolverTrackerPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Resolution/DependencyResolverTrackerPolicy.cs
similarity index 98%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Resolution/DependencyResolverTrackerPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Resolution/DependencyResolverTrackerPolicy.cs
index 234e93f0..99291fda 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Resolution/DependencyResolverTrackerPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Resolution/DependencyResolverTrackerPolicy.cs
@@ -2,7 +2,7 @@
using System.Collections.Generic;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Implementation of .
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Resolution/FixedTypeResolverPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Resolution/FixedTypeResolverPolicy.cs
similarity index 94%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Resolution/FixedTypeResolverPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Resolution/FixedTypeResolverPolicy.cs
index 45859ba9..48df73df 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Resolution/FixedTypeResolverPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Resolution/FixedTypeResolverPolicy.cs
@@ -2,9 +2,9 @@
using System;
using System.Diagnostics.CodeAnalysis;
-using Microsoft.Practices.Unity.Utility;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// An implementation of that
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Resolution/IDependencyResolverPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Resolution/IDependencyResolverPolicy.cs
similarity index 93%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Resolution/IDependencyResolverPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Resolution/IDependencyResolverPolicy.cs
index 5fb019b1..11712056 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Resolution/IDependencyResolverPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Resolution/IDependencyResolverPolicy.cs
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// A strategy that is used at build plan execution time
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Resolution/IDependencyResolverTrackerPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Resolution/IDependencyResolverTrackerPolicy.cs
similarity index 95%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Resolution/IDependencyResolverTrackerPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Resolution/IDependencyResolverTrackerPolicy.cs
index 3aa8e695..fcc241f9 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuildPlan/Resolution/IDependencyResolverTrackerPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuildPlan/Resolution/IDependencyResolverTrackerPolicy.cs
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// A builder policy that lets you keep track of the current
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuilderAware/BuilderAwareStrategy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuilderAware/BuilderAwareStrategy.cs
similarity index 96%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuilderAware/BuilderAwareStrategy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuilderAware/BuilderAwareStrategy.cs
index 3c5a037b..e7ab50d0 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuilderAware/BuilderAwareStrategy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuilderAware/BuilderAwareStrategy.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System.Diagnostics.CodeAnalysis;
-using Microsoft.Practices.Unity.Utility;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Implementation of which will notify an object about
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuilderAware/IBuilderAware.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuilderAware/IBuilderAware.cs
similarity index 94%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuilderAware/IBuilderAware.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuilderAware/IBuilderAware.cs
index b42e264e..aafd42d2 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuilderAware/IBuilderAware.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuilderAware/IBuilderAware.cs
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Implemented on a class when it wants to receive notifications
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuilderStage.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuilderStage.cs
similarity index 97%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuilderStage.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuilderStage.cs
index dc94d1b9..cc0323ee 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuilderStage.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuilderStage.cs
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Enumeration to represent the object builder stages.
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/BuilderStrategy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuilderStrategy.cs
similarity index 97%
rename from source/Unity/Src/ObjectBuilder/Strategies/BuilderStrategy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuilderStrategy.cs
index 42cf0137..807b30f8 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/BuilderStrategy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/BuilderStrategy.cs
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Represents a strategy in the chain of responsibility.
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/IBuilderStrategy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/IBuilderStrategy.cs
similarity index 98%
rename from source/Unity/Src/ObjectBuilder/Strategies/IBuilderStrategy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/IBuilderStrategy.cs
index 03543fc7..092686f2 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/IBuilderStrategy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/IBuilderStrategy.cs
@@ -2,7 +2,7 @@
using System.Diagnostics.CodeAnalysis;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Represents a strategy in the chain of responsibility.
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/IStagedStrategyChain.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/IStagedStrategyChain.cs
similarity index 93%
rename from source/Unity/Src/ObjectBuilder/Strategies/IStagedStrategyChain.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/IStagedStrategyChain.cs
index 78a67e32..de5d8fa2 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/IStagedStrategyChain.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/IStagedStrategyChain.cs
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// This interface defines a standard method to convert any regardless
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/IStrategyChain.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/IStrategyChain.cs
similarity index 97%
rename from source/Unity/Src/ObjectBuilder/Strategies/IStrategyChain.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/IStrategyChain.cs
index d0571cc1..c4707d33 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/IStrategyChain.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/IStrategyChain.cs
@@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Represents a chain of responsibility for builder strategies.
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/Lifetime/ILifetimeFactoryPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/Lifetime/ILifetimeFactoryPolicy.cs
similarity index 94%
rename from source/Unity/Src/ObjectBuilder/Strategies/Lifetime/ILifetimeFactoryPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/Lifetime/ILifetimeFactoryPolicy.cs
index 596dd386..e45496c4 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/Lifetime/ILifetimeFactoryPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/Lifetime/ILifetimeFactoryPolicy.cs
@@ -2,7 +2,7 @@
using System;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// A builder policy used to create lifetime policy instances.
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/Lifetime/ILifetimePolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/Lifetime/ILifetimePolicy.cs
similarity index 96%
rename from source/Unity/Src/ObjectBuilder/Strategies/Lifetime/ILifetimePolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/Lifetime/ILifetimePolicy.cs
index 0d73e124..ed739ec9 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/Lifetime/ILifetimePolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/Lifetime/ILifetimePolicy.cs
@@ -2,7 +2,7 @@
using System.Diagnostics.CodeAnalysis;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// A that controls how instances are
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/Lifetime/LifetimeStrategy.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/Lifetime/LifetimeStrategy.cs
similarity index 97%
rename from source/Unity/Src/ObjectBuilder/Strategies/Lifetime/LifetimeStrategy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/Lifetime/LifetimeStrategy.cs
index 78aab7cf..6e80f7f8 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/Lifetime/LifetimeStrategy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/Lifetime/LifetimeStrategy.cs
@@ -3,10 +3,10 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
-using Microsoft.Practices.Unity;
-using Microsoft.Practices.Unity.Utility;
+using Unity;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// An implementation that uses
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/StagedStrategyChain.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/StagedStrategyChain.cs
similarity index 99%
rename from source/Unity/Src/ObjectBuilder/Strategies/StagedStrategyChain.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/StagedStrategyChain.cs
index 9d44066f..32fd8a67 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/StagedStrategyChain.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/StagedStrategyChain.cs
@@ -6,7 +6,7 @@
using System.Linq;
using System.Reflection;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Represents a chain of responsibility for builder strategies partitioned by stages.
diff --git a/source/Unity/Src/ObjectBuilder/Strategies/StrategyChain.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/StrategyChain.cs
similarity index 95%
rename from source/Unity/Src/ObjectBuilder/Strategies/StrategyChain.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Strategies/StrategyChain.cs
index a5e3c10c..13c1bb25 100644
--- a/source/Unity/Src/ObjectBuilder/Strategies/StrategyChain.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Strategies/StrategyChain.cs
@@ -4,9 +4,9 @@
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
-using Microsoft.Practices.Unity.Utility;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Represents a chain of responsibility for builder strategies.
@@ -72,7 +72,7 @@ public IStrategyChain Reverse()
/// The build up object
public object ExecuteBuildUp(IBuilderContext context)
{
- Microsoft.Practices.Unity.Utility.Guard.ArgumentNotNull(context, "context");
+ Unity.Utility.Guard.ArgumentNotNull(context, "context");
int i = 0;
try
@@ -111,7 +111,7 @@ public object ExecuteBuildUp(IBuilderContext context)
/// Context for the teardown process.
public void ExecuteTearDown(IBuilderContext context)
{
- Microsoft.Practices.Unity.Utility.Guard.ArgumentNotNull(context, "context");
+ Unity.Utility.Guard.ArgumentNotNull(context, "context");
int i = 0;
diff --git a/source/Unity/Src/ObjectBuilder/Utility/EnumerableExtensions.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Utility/EnumerableExtensions.cs
similarity index 97%
rename from source/Unity/Src/ObjectBuilder/Utility/EnumerableExtensions.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Utility/EnumerableExtensions.cs
index edfd5319..17204fcc 100644
--- a/source/Unity/Src/ObjectBuilder/Utility/EnumerableExtensions.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Utility/EnumerableExtensions.cs
@@ -5,9 +5,9 @@
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text;
-using Microsoft.Practices.Unity.Utility;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// The almost inevitable collection of extra helper methods on
diff --git a/source/Unity/Src/ObjectBuilder/Utility/NamedTypeBuildKey.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Utility/NamedTypeBuildKey.cs
similarity index 98%
rename from source/Unity/Src/ObjectBuilder/Utility/NamedTypeBuildKey.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Utility/NamedTypeBuildKey.cs
index d35e4502..e6baee8c 100644
--- a/source/Unity/Src/ObjectBuilder/Utility/NamedTypeBuildKey.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Utility/NamedTypeBuildKey.cs
@@ -3,9 +3,9 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
-using Microsoft.Practices.Unity.Utility;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// Build key used to combine a type object with a string name. Used by
diff --git a/source/Unity/Src/ObjectBuilder/Utility/Sequence.cs b/source/Src/Unity-CoreClr/ObjectBuilder/Utility/Sequence.cs
similarity index 96%
rename from source/Unity/Src/ObjectBuilder/Utility/Sequence.cs
rename to source/Src/Unity-CoreClr/ObjectBuilder/Utility/Sequence.cs
index bdbe870c..43146f87 100644
--- a/source/Unity/Src/ObjectBuilder/Utility/Sequence.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilder/Utility/Sequence.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System.Collections.Generic;
-using Microsoft.Practices.Unity.Utility;
+using Unity.Utility;
-namespace Microsoft.Practices.ObjectBuilder2
+namespace ObjectBuilder2
{
///
/// A series of helper methods to deal with sequences -
diff --git a/source/Unity/Src/ObjectBuilderCustomization/ArrayResolutionStrategy.cs b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/ArrayResolutionStrategy.cs
similarity index 95%
rename from source/Unity/Src/ObjectBuilderCustomization/ArrayResolutionStrategy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilderCustomization/ArrayResolutionStrategy.cs
index 2c592b03..d653829d 100644
--- a/source/Unity/Src/ObjectBuilderCustomization/ArrayResolutionStrategy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/ArrayResolutionStrategy.cs
@@ -4,10 +4,10 @@
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Reflection;
-using Microsoft.Practices.ObjectBuilder2;
-using Guard = Microsoft.Practices.Unity.Utility.Guard;
+using ObjectBuilder2;
+using Guard = Unity.Utility.Guard;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// This strategy implements the logic that will call container.ResolveAll
diff --git a/source/Unity/Src/ObjectBuilderCustomization/DefaultUnityConstructorSelectorPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/DefaultUnityConstructorSelectorPolicy.cs
similarity index 93%
rename from source/Unity/Src/ObjectBuilderCustomization/DefaultUnityConstructorSelectorPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilderCustomization/DefaultUnityConstructorSelectorPolicy.cs
index aa875c37..ef25a475 100644
--- a/source/Unity/Src/ObjectBuilderCustomization/DefaultUnityConstructorSelectorPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/DefaultUnityConstructorSelectorPolicy.cs
@@ -3,10 +3,10 @@
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Reflection;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.Utility;
+using ObjectBuilder2;
+using Unity.Utility;
-namespace Microsoft.Practices.Unity.ObjectBuilder
+namespace Unity.ObjectBuilder
{
///
/// An implementation of that is
diff --git a/source/Unity/Src/ObjectBuilderCustomization/DefaultUnityMethodSelectorPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/DefaultUnityMethodSelectorPolicy.cs
similarity index 88%
rename from source/Unity/Src/ObjectBuilderCustomization/DefaultUnityMethodSelectorPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilderCustomization/DefaultUnityMethodSelectorPolicy.cs
index 5df5d49c..3eb37471 100644
--- a/source/Unity/Src/ObjectBuilderCustomization/DefaultUnityMethodSelectorPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/DefaultUnityMethodSelectorPolicy.cs
@@ -3,9 +3,9 @@
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
-using Microsoft.Practices.ObjectBuilder2;
+using ObjectBuilder2;
-namespace Microsoft.Practices.Unity.ObjectBuilder
+namespace Unity.ObjectBuilder
{
///
/// An implementation of that is aware
@@ -23,7 +23,7 @@ public class DefaultUnityMethodSelectorPolicy : MethodSelectorPolicyBase()
diff --git a/source/Unity/Src/ObjectBuilderCustomization/DefaultUnityPropertySelectorPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/DefaultUnityPropertySelectorPolicy.cs
similarity index 88%
rename from source/Unity/Src/ObjectBuilderCustomization/DefaultUnityPropertySelectorPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilderCustomization/DefaultUnityPropertySelectorPolicy.cs
index bec61d9c..c25d692e 100644
--- a/source/Unity/Src/ObjectBuilderCustomization/DefaultUnityPropertySelectorPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/DefaultUnityPropertySelectorPolicy.cs
@@ -3,9 +3,9 @@
using System.Diagnostics;
using System.Linq;
using System.Reflection;
-using Microsoft.Practices.ObjectBuilder2;
+using ObjectBuilder2;
-namespace Microsoft.Practices.Unity.ObjectBuilder
+namespace Unity.ObjectBuilder
{
///
/// An implementation of that is aware of
@@ -23,7 +23,7 @@ public class DefaultUnityPropertySelectorPolicy : PropertySelectorBase
/// A strategy that handles Hierarchical lifetimes across a set of parent/child
@@ -22,7 +22,7 @@ public class HierarchicalLifetimeStrategy : BuilderStrategy
Justification = "Validation done by Guard class")]
public override void PreBuildUp(IBuilderContext context)
{
- Microsoft.Practices.Unity.Utility.Guard.ArgumentNotNull(context, "context");
+ Unity.Utility.Guard.ArgumentNotNull(context, "context");
IPolicyList lifetimePolicySource;
diff --git a/source/Unity/Src/ObjectBuilderCustomization/IRegisteredNamesPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/IRegisteredNamesPolicy.cs
similarity index 89%
rename from source/Unity/Src/ObjectBuilderCustomization/IRegisteredNamesPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilderCustomization/IRegisteredNamesPolicy.cs
index 926d9c8a..31c60a90 100644
--- a/source/Unity/Src/ObjectBuilderCustomization/IRegisteredNamesPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/IRegisteredNamesPolicy.cs
@@ -2,9 +2,9 @@
using System;
using System.Collections.Generic;
-using Microsoft.Practices.ObjectBuilder2;
+using ObjectBuilder2;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// Provides access to the names registered for a container.
diff --git a/source/Unity/Src/ObjectBuilderCustomization/LiteralValueDependencyResolverPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/LiteralValueDependencyResolverPolicy.cs
similarity index 92%
rename from source/Unity/Src/ObjectBuilderCustomization/LiteralValueDependencyResolverPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilderCustomization/LiteralValueDependencyResolverPolicy.cs
index 70d66fbd..1bfcd651 100644
--- a/source/Unity/Src/ObjectBuilderCustomization/LiteralValueDependencyResolverPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/LiteralValueDependencyResolverPolicy.cs
@@ -1,8 +1,8 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-using Microsoft.Practices.ObjectBuilder2;
+using ObjectBuilder2;
-namespace Microsoft.Practices.Unity.ObjectBuilder
+namespace Unity.ObjectBuilder
{
///
/// A implementation that returns
diff --git a/source/Unity/Src/ObjectBuilderCustomization/NamedTypeDependencyResolverPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/NamedTypeDependencyResolverPolicy.cs
similarity index 94%
rename from source/Unity/Src/ObjectBuilderCustomization/NamedTypeDependencyResolverPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilderCustomization/NamedTypeDependencyResolverPolicy.cs
index 7ac4f499..87031464 100644
--- a/source/Unity/Src/ObjectBuilderCustomization/NamedTypeDependencyResolverPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/NamedTypeDependencyResolverPolicy.cs
@@ -2,10 +2,10 @@
using System;
using System.Diagnostics.CodeAnalysis;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.Utility;
+using ObjectBuilder2;
+using Unity.Utility;
-namespace Microsoft.Practices.Unity.ObjectBuilder
+namespace Unity.ObjectBuilder
{
///
/// An implementation of that stores a
diff --git a/source/Unity/Src/ObjectBuilderCustomization/OptionalDependencyResolverPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/OptionalDependencyResolverPolicy.cs
similarity index 94%
rename from source/Unity/Src/ObjectBuilderCustomization/OptionalDependencyResolverPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilderCustomization/OptionalDependencyResolverPolicy.cs
index a63d02fa..097eeb79 100644
--- a/source/Unity/Src/ObjectBuilderCustomization/OptionalDependencyResolverPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/OptionalDependencyResolverPolicy.cs
@@ -4,11 +4,11 @@
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Reflection;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.Properties;
-using Microsoft.Practices.Unity.Utility;
+using ObjectBuilder2;
+using Unity.Properties;
+using Unity.Utility;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A that will attempt to
diff --git a/source/Unity/Src/ObjectBuilderCustomization/RegisteredNamesPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/RegisteredNamesPolicy.cs
similarity index 94%
rename from source/Unity/Src/ObjectBuilderCustomization/RegisteredNamesPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilderCustomization/RegisteredNamesPolicy.cs
index eadc5973..596ba49a 100644
--- a/source/Unity/Src/ObjectBuilderCustomization/RegisteredNamesPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/RegisteredNamesPolicy.cs
@@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.Linq;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
internal class RegisteredNamesPolicy : IRegisteredNamesPolicy
{
diff --git a/source/Unity/Src/ObjectBuilderCustomization/ResolvedArrayWithElementsResolverPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/ResolvedArrayWithElementsResolverPolicy.cs
similarity index 96%
rename from source/Unity/Src/ObjectBuilderCustomization/ResolvedArrayWithElementsResolverPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilderCustomization/ResolvedArrayWithElementsResolverPolicy.cs
index 0fe2d718..124bc9d1 100644
--- a/source/Unity/Src/ObjectBuilderCustomization/ResolvedArrayWithElementsResolverPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/ResolvedArrayWithElementsResolverPolicy.cs
@@ -4,10 +4,10 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.Utility;
+using ObjectBuilder2;
+using Unity.Utility;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// An implementation of that resolves to
diff --git a/source/Unity/Src/ObjectBuilderCustomization/SpecifiedConstructorSelectorPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/SpecifiedConstructorSelectorPolicy.cs
similarity index 91%
rename from source/Unity/Src/ObjectBuilderCustomization/SpecifiedConstructorSelectorPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilderCustomization/SpecifiedConstructorSelectorPolicy.cs
index f15742f4..4da85b74 100644
--- a/source/Unity/Src/ObjectBuilderCustomization/SpecifiedConstructorSelectorPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/SpecifiedConstructorSelectorPolicy.cs
@@ -3,11 +3,11 @@
using System;
using System.Collections.Generic;
using System.Reflection;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity;
-using Microsoft.Practices.Unity.Utility;
+using ObjectBuilder2;
+using Unity;
+using Unity.Utility;
-namespace Microsoft.Practices.Unity.ObjectBuilder
+namespace Unity.ObjectBuilder
{
///
/// An implementation of that selects
@@ -47,7 +47,7 @@ public SpecifiedConstructorSelectorPolicy(ConstructorInfo ctor, InjectionParamet
Justification = "Validation done by Guard class")]
public SelectedConstructor SelectConstructor(IBuilderContext context, IPolicyList resolverPolicyDestination)
{
- Microsoft.Practices.Unity.Utility.Guard.ArgumentNotNull(context, "context");
+ Unity.Utility.Guard.ArgumentNotNull(context, "context");
SelectedConstructor result;
Type typeToBuild = context.BuildKey.Type;
@@ -61,7 +61,7 @@ public SelectedConstructor SelectConstructor(IBuilderContext context, IPolicyLis
{
Type[] closedCtorParameterTypes =
ctorReflector.GetClosedParameterTypes(typeToBuild.GenericTypeArguments);
- result = new SelectedConstructor(typeToBuild.GetConstructor(closedCtorParameterTypes));
+ result = new SelectedConstructor(typeToBuild.GetConstructorInfo(closedCtorParameterTypes));
}
SpecifiedMemberSelectorHelper.AddParameterResolvers(typeToBuild, resolverPolicyDestination, parameterValues, result);
diff --git a/source/Unity/Src/ObjectBuilderCustomization/SpecifiedMemberSelectorHelper.cs b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/SpecifiedMemberSelectorHelper.cs
similarity index 78%
rename from source/Unity/Src/ObjectBuilderCustomization/SpecifiedMemberSelectorHelper.cs
rename to source/Src/Unity-CoreClr/ObjectBuilderCustomization/SpecifiedMemberSelectorHelper.cs
index 07aa723d..887a4827 100644
--- a/source/Unity/Src/ObjectBuilderCustomization/SpecifiedMemberSelectorHelper.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/SpecifiedMemberSelectorHelper.cs
@@ -2,9 +2,9 @@
using System;
using System.Collections.Generic;
-using Microsoft.Practices.ObjectBuilder2;
+using ObjectBuilder2;
-namespace Microsoft.Practices.Unity.ObjectBuilder
+namespace Unity.ObjectBuilder
{
///
/// Helper class for implementing selector policies that need to
@@ -24,9 +24,9 @@ public static void AddParameterResolvers(Type typeToBuild,
IEnumerable parameterValues,
SelectedMemberWithParameters result)
{
- Microsoft.Practices.Unity.Utility.Guard.ArgumentNotNull(policies, "policies");
- Microsoft.Practices.Unity.Utility.Guard.ArgumentNotNull(parameterValues, "parameterValues");
- Microsoft.Practices.Unity.Utility.Guard.ArgumentNotNull(result, "result");
+ Unity.Utility.Guard.ArgumentNotNull(policies, "policies");
+ Unity.Utility.Guard.ArgumentNotNull(parameterValues, "parameterValues");
+ Unity.Utility.Guard.ArgumentNotNull(result, "result");
foreach (InjectionParameterValue parameterValue in parameterValues)
{
diff --git a/source/Unity/Src/ObjectBuilderCustomization/SpecifiedMethodsSelectorPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/SpecifiedMethodsSelectorPolicy.cs
similarity index 95%
rename from source/Unity/Src/ObjectBuilderCustomization/SpecifiedMethodsSelectorPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilderCustomization/SpecifiedMethodsSelectorPolicy.cs
index 93f986ce..73972aea 100644
--- a/source/Unity/Src/ObjectBuilderCustomization/SpecifiedMethodsSelectorPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/SpecifiedMethodsSelectorPolicy.cs
@@ -3,11 +3,11 @@
using System;
using System.Collections.Generic;
using System.Reflection;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity;
-using Microsoft.Practices.Unity.Utility;
+using ObjectBuilder2;
+using Unity;
+using Unity.Utility;
-namespace Microsoft.Practices.Unity.ObjectBuilder
+namespace Unity.ObjectBuilder
{
///
/// A implementation that calls the specific
diff --git a/source/Unity/Src/ObjectBuilderCustomization/SpecifiedPropertiesSelectorPolicy.cs b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/SpecifiedPropertiesSelectorPolicy.cs
similarity index 94%
rename from source/Unity/Src/ObjectBuilderCustomization/SpecifiedPropertiesSelectorPolicy.cs
rename to source/Src/Unity-CoreClr/ObjectBuilderCustomization/SpecifiedPropertiesSelectorPolicy.cs
index 0299c824..7c6e0072 100644
--- a/source/Unity/Src/ObjectBuilderCustomization/SpecifiedPropertiesSelectorPolicy.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/SpecifiedPropertiesSelectorPolicy.cs
@@ -3,11 +3,11 @@
using System;
using System.Collections.Generic;
using System.Reflection;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity;
-using Microsoft.Practices.Unity.Utility;
+using ObjectBuilder2;
+using Unity;
+using Unity.Utility;
-namespace Microsoft.Practices.Unity.ObjectBuilder
+namespace Unity.ObjectBuilder
{
///
/// An implementation of which returns
diff --git a/source/Unity/Src/ObjectBuilderCustomization/UnityBuildStage.cs b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/UnityBuildStage.cs
similarity index 96%
rename from source/Unity/Src/ObjectBuilderCustomization/UnityBuildStage.cs
rename to source/Src/Unity-CoreClr/ObjectBuilderCustomization/UnityBuildStage.cs
index c2d29432..d24bfb15 100644
--- a/source/Unity/Src/ObjectBuilderCustomization/UnityBuildStage.cs
+++ b/source/Src/Unity-CoreClr/ObjectBuilderCustomization/UnityBuildStage.cs
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System.Diagnostics.CodeAnalysis;
-namespace Microsoft.Practices.Unity.ObjectBuilder
+namespace Unity.ObjectBuilder
{
///
/// The build stages we use in the Unity container
diff --git a/source/Unity/Src/OverrideCollection.cs b/source/Src/Unity-CoreClr/OverrideCollection.cs
similarity index 97%
rename from source/Unity/Src/OverrideCollection.cs
rename to source/Src/Unity-CoreClr/OverrideCollection.cs
index 150cc664..f5d34529 100644
--- a/source/Unity/Src/OverrideCollection.cs
+++ b/source/Src/Unity-CoreClr/OverrideCollection.cs
@@ -4,9 +4,9 @@
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
-using Microsoft.Practices.ObjectBuilder2;
+using ObjectBuilder2;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// Base helper class for creating collections of objects
diff --git a/source/Unity/Src/ParameterOverride.cs b/source/Src/Unity-CoreClr/ParameterOverride.cs
similarity index 94%
rename from source/Unity/Src/ParameterOverride.cs
rename to source/Src/Unity-CoreClr/ParameterOverride.cs
index 459fc3e1..0f13e07d 100644
--- a/source/Unity/Src/ParameterOverride.cs
+++ b/source/Src/Unity-CoreClr/ParameterOverride.cs
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.Utility;
+using ObjectBuilder2;
+using Unity.Utility;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A class that lets you
diff --git a/source/Unity/Src/ParameterOverrides.cs b/source/Src/Unity-CoreClr/ParameterOverrides.cs
similarity index 97%
rename from source/Unity/Src/ParameterOverrides.cs
rename to source/Src/Unity-CoreClr/ParameterOverrides.cs
index f6a242c1..28db8e78 100644
--- a/source/Unity/Src/ParameterOverrides.cs
+++ b/source/Src/Unity-CoreClr/ParameterOverrides.cs
@@ -2,7 +2,7 @@
using System.Diagnostics.CodeAnalysis;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A convenience form of that lets you
diff --git a/source/Unity/Src/Properties/AssemblyInfo.cs b/source/Src/Unity-CoreClr/Properties/AssemblyInfo.cs
similarity index 88%
rename from source/Unity/Src/Properties/AssemblyInfo.cs
rename to source/Src/Unity-CoreClr/Properties/AssemblyInfo.cs
index f731ffc5..b4a481a4 100644
--- a/source/Unity/Src/Properties/AssemblyInfo.cs
+++ b/source/Src/Unity-CoreClr/Properties/AssemblyInfo.cs
@@ -6,8 +6,8 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
-[assembly: AssemblyTitle("")]
-[assembly: AssemblyDescription("")]
+[assembly: AssemblyTitle("Unity.Core")]
+[assembly: AssemblyDescription("Unity Core")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
diff --git a/source/Unity/Src/Properties/Resources.Designer.cs b/source/Src/Unity-CoreClr/Properties/Resources.Designer.cs
similarity index 66%
rename from source/Unity/Src/Properties/Resources.Designer.cs
rename to source/Src/Unity-CoreClr/Properties/Resources.Designer.cs
index 48b1c71c..11443ce1 100644
--- a/source/Unity/Src/Properties/Resources.Designer.cs
+++ b/source/Src/Unity-CoreClr/Properties/Resources.Designer.cs
@@ -1,26 +1,25 @@
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:4.0.30319.34209
+// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
-namespace Microsoft.Practices.Unity.Properties {
+namespace Unity.Properties {
using System;
using System.Reflection;
///
- /// A strongly-typed resource class, for looking up localized strings, etc.
+ /// A strongly-typed resource class, for looking up localized strings, etc.
///
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
@@ -29,18 +28,17 @@ internal class Resources {
private static global::System.Globalization.CultureInfo resourceCulture;
- [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
///
- /// Returns the cached ResourceManager instance used by this class.
+ /// Returns the cached ResourceManager instance used by this class.
///
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.Practices.Unity.Properties.Resources", typeof(Resources).GetTypeInfo().Assembly);
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Unity.Properties.Resources", typeof(Resources).GetTypeInfo().Assembly);
resourceMan = temp;
}
return resourceMan;
@@ -48,8 +46,8 @@ internal Resources() {
}
///
- /// Overrides the current thread's CurrentUICulture property for all
- /// resource lookups using this strongly typed resource class.
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
///
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
@@ -62,7 +60,7 @@ internal Resources() {
}
///
- /// Looks up a localized string similar to The type {0} has multiple constructors of length {1}. Unable to disambiguate..
+ /// Looks up a localized string similar to The type {0} has multiple constructors of length {1}. Unable to disambiguate..
///
internal static string AmbiguousInjectionConstructor {
get {
@@ -71,7 +69,7 @@ internal static string AmbiguousInjectionConstructor {
}
///
- /// Looks up a localized string similar to The provided string argument must not be empty..
+ /// Looks up a localized string similar to The provided string argument must not be empty..
///
internal static string ArgumentMustNotBeEmpty {
get {
@@ -80,7 +78,7 @@ internal static string ArgumentMustNotBeEmpty {
}
///
- /// Looks up a localized string similar to The current build operation (build key {2}) failed: {3} (Strategy type {0}, index {1}).
+ /// Looks up a localized string similar to The current build operation (build key {2}) failed: {3} (Strategy type {0}, index {1}).
///
internal static string BuildFailedException {
get {
@@ -89,7 +87,7 @@ internal static string BuildFailedException {
}
///
- /// Looks up a localized string similar to The current type, {0}, is an abstract class and cannot be constructed. Are you missing a type mapping?.
+ /// Looks up a localized string similar to The current type, {0}, is an abstract class and cannot be constructed. Are you missing a type mapping?.
///
internal static string CannotConstructAbstractClass {
get {
@@ -98,7 +96,7 @@ internal static string CannotConstructAbstractClass {
}
///
- /// Looks up a localized string similar to The current type, {0}, is delegate and cannot be constructed. Unity only supports resolving Func<T> and Func<IEnumerable<T>> by default..
+ /// Looks up a localized string similar to The current type, {0}, is delegate and cannot be constructed. Unity only supports resolving Func<T> and Func<IEnumerable<T>> by default..
///
internal static string CannotConstructDelegate {
get {
@@ -107,7 +105,7 @@ internal static string CannotConstructDelegate {
}
///
- /// Looks up a localized string similar to The current type, {0}, is an interface and cannot be constructed. Are you missing a type mapping?.
+ /// Looks up a localized string similar to The current type, {0}, is an interface and cannot be constructed. Are you missing a type mapping?.
///
internal static string CannotConstructInterface {
get {
@@ -116,7 +114,7 @@ internal static string CannotConstructInterface {
}
///
- /// Looks up a localized string similar to Cannot extract type from build key {0}..
+ /// Looks up a localized string similar to Cannot extract type from build key {0}..
///
internal static string CannotExtractTypeFromBuildKey {
get {
@@ -125,7 +123,7 @@ internal static string CannotExtractTypeFromBuildKey {
}
///
- /// Looks up a localized string similar to The method {0}.{1}({2}) is an open generic method. Open generic methods cannot be injected..
+ /// Looks up a localized string similar to The method {0}.{1}({2}) is an open generic method. Open generic methods cannot be injected..
///
internal static string CannotInjectGenericMethod {
get {
@@ -134,7 +132,7 @@ internal static string CannotInjectGenericMethod {
}
///
- /// Looks up a localized string similar to The property {0} on type {1} is an indexer. Indexed properties cannot be injected..
+ /// Looks up a localized string similar to The property {0} on type {1} is an indexer. Indexed properties cannot be injected..
///
internal static string CannotInjectIndexer {
get {
@@ -143,7 +141,7 @@ internal static string CannotInjectIndexer {
}
///
- /// Looks up a localized string similar to The method {1} on type {0} has an out parameter. Injection cannot be performed..
+ /// Looks up a localized string similar to The method {1} on type {0} has an out parameter. Injection cannot be performed..
///
internal static string CannotInjectMethodWithOutParam {
get {
@@ -152,7 +150,7 @@ internal static string CannotInjectMethodWithOutParam {
}
///
- /// Looks up a localized string similar to The method {0}.{1}({2}) has at least one out parameter. Methods with out parameters cannot be injected..
+ /// Looks up a localized string similar to The method {0}.{1}({2}) has at least one out parameter. Methods with out parameters cannot be injected..
///
internal static string CannotInjectMethodWithOutParams {
get {
@@ -161,7 +159,7 @@ internal static string CannotInjectMethodWithOutParams {
}
///
- /// Looks up a localized string similar to The method {0}.{1}({2}) has at least one ref parameter.Methods with ref parameters cannot be injected..
+ /// Looks up a localized string similar to The method {0}.{1}({2}) has at least one ref parameter.Methods with ref parameters cannot be injected..
///
internal static string CannotInjectMethodWithRefParams {
get {
@@ -170,7 +168,7 @@ internal static string CannotInjectMethodWithRefParams {
}
///
- /// Looks up a localized string similar to The method {1} on type {0} is marked for injection, but it is an open generic method. Injection cannot be performed..
+ /// Looks up a localized string similar to The method {1} on type {0} is marked for injection, but it is an open generic method. Injection cannot be performed..
///
internal static string CannotInjectOpenGenericMethod {
get {
@@ -179,7 +177,7 @@ internal static string CannotInjectOpenGenericMethod {
}
///
- /// Looks up a localized string similar to The method {0}.{1}({2}) is static. Static methods cannot be injected..
+ /// Looks up a localized string similar to The method {0}.{1}({2}) is static. Static methods cannot be injected..
///
internal static string CannotInjectStaticMethod {
get {
@@ -188,7 +186,7 @@ internal static string CannotInjectStaticMethod {
}
///
- /// Looks up a localized string similar to The type {0} is an open generic type. An open generic type cannot be resolved..
+ /// Looks up a localized string similar to The type {0} is an open generic type. An open generic type cannot be resolved..
///
internal static string CannotResolveOpenGenericType {
get {
@@ -197,7 +195,7 @@ internal static string CannotResolveOpenGenericType {
}
///
- /// Looks up a localized string similar to Resolving parameter "{0}" of constructor {1}.
+ /// Looks up a localized string similar to Resolving parameter "{0}" of constructor {1}.
///
internal static string ConstructorArgumentResolveOperation {
get {
@@ -206,7 +204,7 @@ internal static string ConstructorArgumentResolveOperation {
}
///
- /// Looks up a localized string similar to The parameter {0} could not be resolved when attempting to call constructor {1}..
+ /// Looks up a localized string similar to The parameter {0} could not be resolved when attempting to call constructor {1}..
///
internal static string ConstructorParameterResolutionFailed {
get {
@@ -215,7 +213,7 @@ internal static string ConstructorParameterResolutionFailed {
}
///
- /// Looks up a localized string similar to Parameter type inference does not work for null values. Indicate the parameter type explicitly using a properly configured instance of the InjectionParameter or InjectionParameter<T> classes..
+ /// Looks up a localized string similar to Parameter type inference does not work for null values. Indicate the parameter type explicitly using a properly configured instance of the InjectionParameter or InjectionParameter<T> classes..
///
internal static string ExceptionNullParameterValue {
get {
@@ -224,7 +222,7 @@ internal static string ExceptionNullParameterValue {
}
///
- /// Looks up a localized string similar to Calling constructor {0}.
+ /// Looks up a localized string similar to Calling constructor {0}.
///
internal static string InvokingConstructorOperation {
get {
@@ -233,7 +231,7 @@ internal static string InvokingConstructorOperation {
}
///
- /// Looks up a localized string similar to Calling method {0}.{1}.
+ /// Looks up a localized string similar to Calling method {0}.{1}.
///
internal static string InvokingMethodOperation {
get {
@@ -242,7 +240,7 @@ internal static string InvokingMethodOperation {
}
///
- /// Looks up a localized string similar to An item with the given key is already present in the dictionary..
+ /// Looks up a localized string similar to An item with the given key is already present in the dictionary..
///
internal static string KeyAlreadyPresent {
get {
@@ -251,7 +249,7 @@ internal static string KeyAlreadyPresent {
}
///
- /// Looks up a localized string similar to The lifetime manager is already registered. Lifetime managers cannot be reused, please create a new one..
+ /// Looks up a localized string similar to The lifetime manager is already registered. Lifetime managers cannot be reused, please create a new one..
///
internal static string LifetimeManagerInUse {
get {
@@ -260,7 +258,7 @@ internal static string LifetimeManagerInUse {
}
///
- /// Looks up a localized string similar to The override marker build plan policy has been invoked. This should never happen, looks like a bug in the container..
+ /// Looks up a localized string similar to The override marker build plan policy has been invoked. This should never happen, looks like a bug in the container..
///
internal static string MarkerBuildPlanInvoked {
get {
@@ -269,7 +267,7 @@ internal static string MarkerBuildPlanInvoked {
}
///
- /// Looks up a localized string similar to Resolving parameter "{0}" of method {1}.{2}.
+ /// Looks up a localized string similar to Resolving parameter "{0}" of method {1}.{2}.
///
internal static string MethodArgumentResolveOperation {
get {
@@ -278,7 +276,7 @@ internal static string MethodArgumentResolveOperation {
}
///
- /// Looks up a localized string similar to The value for parameter "{1}" of method {0} could not be resolved. .
+ /// Looks up a localized string similar to The value for parameter "{1}" of method {0} could not be resolved. .
///
internal static string MethodParameterResolutionFailed {
get {
@@ -287,7 +285,7 @@ internal static string MethodParameterResolutionFailed {
}
///
- /// Looks up a localized string similar to Could not resolve dependency for build key {0}..
+ /// Looks up a localized string similar to Could not resolve dependency for build key {0}..
///
internal static string MissingDependency {
get {
@@ -296,7 +294,7 @@ internal static string MissingDependency {
}
///
- /// Looks up a localized string similar to The type {0} has multiple constructors marked with the InjectionConstructor attribute. Unable to disambiguate..
+ /// Looks up a localized string similar to The type {0} has multiple constructors marked with the InjectionConstructor attribute. Unable to disambiguate..
///
internal static string MultipleInjectionConstructors {
get {
@@ -305,7 +303,7 @@ internal static string MultipleInjectionConstructors {
}
///
- /// Looks up a localized string similar to The supplied type {0} must be an open generic type..
+ /// Looks up a localized string similar to The supplied type {0} must be an open generic type..
///
internal static string MustHaveOpenGenericType {
get {
@@ -314,7 +312,7 @@ internal static string MustHaveOpenGenericType {
}
///
- /// Looks up a localized string similar to The supplied type {0} does not have the same number of generic arguments as the target type {1}..
+ /// Looks up a localized string similar to The supplied type {0} does not have the same number of generic arguments as the target type {1}..
///
internal static string MustHaveSameNumberOfGenericArguments {
get {
@@ -323,7 +321,7 @@ internal static string MustHaveSameNumberOfGenericArguments {
}
///
- /// Looks up a localized string similar to The type {0} does not have an accessible constructor..
+ /// Looks up a localized string similar to The type {0} does not have an accessible constructor..
///
internal static string NoConstructorFound {
get {
@@ -332,7 +330,7 @@ internal static string NoConstructorFound {
}
///
- /// Looks up a localized string similar to The type {0} does not have a generic argument named "{1}".
+ /// Looks up a localized string similar to The type {0} does not have a generic argument named "{1}".
///
internal static string NoMatchingGenericArgument {
get {
@@ -341,7 +339,7 @@ internal static string NoMatchingGenericArgument {
}
///
- /// Looks up a localized string similar to while resolving.
+ /// Looks up a localized string similar to while resolving.
///
internal static string NoOperationExceptionReason {
get {
@@ -350,7 +348,7 @@ internal static string NoOperationExceptionReason {
}
///
- /// Looks up a localized string similar to The type {0} does not have a constructor that takes the parameters ({1})..
+ /// Looks up a localized string similar to The type {0} does not have a constructor that takes the parameters ({1})..
///
internal static string NoSuchConstructor {
get {
@@ -359,7 +357,7 @@ internal static string NoSuchConstructor {
}
///
- /// Looks up a localized string similar to The type {0} does not have a public method named {1} that takes the parameters ({2})..
+ /// Looks up a localized string similar to The type {0} does not have a public method named {1} that takes the parameters ({2})..
///
internal static string NoSuchMethod {
get {
@@ -368,7 +366,7 @@ internal static string NoSuchMethod {
}
///
- /// Looks up a localized string similar to The type {0} does not contain an instance property named {1}..
+ /// Looks up a localized string similar to The type {0} does not contain an instance property named {1}..
///
internal static string NoSuchProperty {
get {
@@ -377,7 +375,7 @@ internal static string NoSuchProperty {
}
///
- /// Looks up a localized string similar to The type {0} is not a generic type, and you are attempting to inject a generic parameter named "{1}"..
+ /// Looks up a localized string similar to The type {0} is not a generic type, and you are attempting to inject a generic parameter named "{1}"..
///
internal static string NotAGenericType {
get {
@@ -386,7 +384,7 @@ internal static string NotAGenericType {
}
///
- /// Looks up a localized string similar to The type {0} is not an array type with rank 1, and you are attempting to use a [DependencyArray] attribute on a parameter or property with this type..
+ /// Looks up a localized string similar to The type {0} is not an array type with rank 1, and you are attempting to use a [DependencyArray] attribute on a parameter or property with this type..
///
internal static string NotAnArrayTypeWithRankOne {
get {
@@ -395,7 +393,7 @@ internal static string NotAnArrayTypeWithRankOne {
}
///
- /// Looks up a localized string similar to Optional dependencies must be reference types. The type {0} is a value type..
+ /// Looks up a localized string similar to Optional dependencies must be reference types. The type {0} is a value type..
///
internal static string OptionalDependenciesMustBeReferenceTypes {
get {
@@ -404,7 +402,7 @@ internal static string OptionalDependenciesMustBeReferenceTypes {
}
///
- /// Looks up a localized string similar to The property {0} on type {1} is not settable..
+ /// Looks up a localized string similar to The property {0} on type {1} is not settable..
///
internal static string PropertyNotSettable {
get {
@@ -413,7 +411,7 @@ internal static string PropertyNotSettable {
}
///
- /// Looks up a localized string similar to The property {0} on type {1} is of type {2}, and cannot be injected with a value of type {3}..
+ /// Looks up a localized string similar to The property {0} on type {1} is of type {2}, and cannot be injected with a value of type {3}..
///
internal static string PropertyTypeMismatch {
get {
@@ -422,7 +420,7 @@ internal static string PropertyTypeMismatch {
}
///
- /// Looks up a localized string similar to The value for the property "{0}" could not be resolved..
+ /// Looks up a localized string similar to The value for the property "{0}" could not be resolved..
///
internal static string PropertyValueResolutionFailed {
get {
@@ -431,7 +429,7 @@ internal static string PropertyValueResolutionFailed {
}
///
- /// Looks up a localized string similar to The provided string argument must not be empty..
+ /// Looks up a localized string similar to The provided string argument must not be empty..
///
internal static string ProvidedStringArgMustNotBeEmpty {
get {
@@ -440,7 +438,7 @@ internal static string ProvidedStringArgMustNotBeEmpty {
}
///
- /// Looks up a localized string similar to Resolution of the dependency failed, type = "{0}", name = "{1}".
+ /// Looks up a localized string similar to Resolution of the dependency failed, type = "{0}", name = "{1}".
///Exception occurred while: {2}.
///Exception is: {3} - {4}
///-----------------------------------------------
@@ -454,7 +452,7 @@ internal static string ResolutionFailed {
}
///
- /// Looks up a localized string similar to Resolving {0},{1}.
+ /// Looks up a localized string similar to Resolving {0},{1}.
///
internal static string ResolutionTraceDetail {
get {
@@ -463,7 +461,7 @@ internal static string ResolutionTraceDetail {
}
///
- /// Looks up a localized string similar to Resolving {0},{1} (mapped from {2}, {3}).
+ /// Looks up a localized string similar to Resolving {0},{1} (mapped from {2}, {3}).
///
internal static string ResolutionWithMappingTraceDetail {
get {
@@ -472,7 +470,7 @@ internal static string ResolutionWithMappingTraceDetail {
}
///
- /// Looks up a localized string similar to Resolving value for property {0}.{1}.
+ /// Looks up a localized string similar to Resolving value for property {0}.{1}.
///
internal static string ResolvingPropertyValueOperation {
get {
@@ -481,7 +479,7 @@ internal static string ResolvingPropertyValueOperation {
}
///
- /// Looks up a localized string similar to The constructor {1} selected for type {0} has ref or out parameters. Such parameters are not supported for constructor injection..
+ /// Looks up a localized string similar to The constructor {1} selected for type {0} has ref or out parameters. Such parameters are not supported for constructor injection..
///
internal static string SelectedConstructorHasRefParameters {
get {
@@ -490,7 +488,7 @@ internal static string SelectedConstructorHasRefParameters {
}
///
- /// Looks up a localized string similar to Setting value for property {0}.{1}.
+ /// Looks up a localized string similar to Setting value for property {0}.{1}.
///
internal static string SettingPropertyOperation {
get {
@@ -499,7 +497,7 @@ internal static string SettingPropertyOperation {
}
///
- /// Looks up a localized string similar to The type {0} cannot be constructed. You must configure the container to supply this value..
+ /// Looks up a localized string similar to The type {0} cannot be constructed. You must configure the container to supply this value..
///
internal static string TypeIsNotConstructable {
get {
@@ -508,7 +506,7 @@ internal static string TypeIsNotConstructable {
}
///
- /// Looks up a localized string similar to The type {1} cannot be assigned to variables of type {0}..
+ /// Looks up a localized string similar to The type {1} cannot be assigned to variables of type {0}..
///
internal static string TypesAreNotAssignable {
get {
@@ -517,7 +515,7 @@ internal static string TypesAreNotAssignable {
}
///
- /// Looks up a localized string similar to <unknown>.
+ /// Looks up a localized string similar to <unknown>.
///
internal static string UnknownType {
get {
diff --git a/source/Unity/Src/Properties/Resources.resx b/source/Src/Unity-CoreClr/Properties/Resources.resx
similarity index 100%
rename from source/Unity/Src/Properties/Resources.resx
rename to source/Src/Unity-CoreClr/Properties/Resources.resx
diff --git a/source/Unity/Src/PropertyOverride.cs b/source/Src/Unity-CoreClr/PropertyOverride.cs
similarity index 94%
rename from source/Unity/Src/PropertyOverride.cs
rename to source/Src/Unity-CoreClr/PropertyOverride.cs
index 0c6be138..8ebe4c8d 100644
--- a/source/Unity/Src/PropertyOverride.cs
+++ b/source/Src/Unity-CoreClr/PropertyOverride.cs
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.Utility;
+using ObjectBuilder2;
+using Unity.Utility;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A that lets you override
diff --git a/source/Unity/Src/PropertyOverrides.cs b/source/Src/Unity-CoreClr/PropertyOverrides.cs
similarity index 97%
rename from source/Unity/Src/PropertyOverrides.cs
rename to source/Src/Unity-CoreClr/PropertyOverrides.cs
index fe9928bc..955d2819 100644
--- a/source/Unity/Src/PropertyOverrides.cs
+++ b/source/Src/Unity-CoreClr/PropertyOverrides.cs
@@ -2,7 +2,7 @@
using System.Diagnostics.CodeAnalysis;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// A convenience form of that lets you
diff --git a/source/Unity/Src/ResolutionFailedException.cs b/source/Src/Unity-CoreClr/ResolutionFailedException.cs
similarity index 97%
rename from source/Unity/Src/ResolutionFailedException.cs
rename to source/Src/Unity-CoreClr/ResolutionFailedException.cs
index f35443bf..50fa623e 100644
--- a/source/Unity/Src/ResolutionFailedException.cs
+++ b/source/Src/Unity-CoreClr/ResolutionFailedException.cs
@@ -5,11 +5,11 @@
using System.Globalization;
using System.Reflection;
using System.Text;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.Properties;
-using Microsoft.Practices.Unity.Utility;
+using ObjectBuilder2;
+using Unity.Properties;
+using Unity.Utility;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// The exception thrown by the Unity container when
diff --git a/source/Unity/Src/ResolverOverride.cs b/source/Src/Unity-CoreClr/ResolverOverride.cs
similarity index 96%
rename from source/Unity/Src/ResolverOverride.cs
rename to source/Src/Unity-CoreClr/ResolverOverride.cs
index fcb9f5c3..be5a1640 100644
--- a/source/Unity/Src/ResolverOverride.cs
+++ b/source/Src/Unity-CoreClr/ResolverOverride.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System;
-using Microsoft.Practices.ObjectBuilder2;
+using ObjectBuilder2;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// Base class for all override objects passed in the
diff --git a/source/Unity/Src/StaticFactory/IStaticFactoryConfiguration.cs b/source/Src/Unity-CoreClr/StaticFactory/IStaticFactoryConfiguration.cs
similarity index 97%
rename from source/Unity/Src/StaticFactory/IStaticFactoryConfiguration.cs
rename to source/Src/Unity-CoreClr/StaticFactory/IStaticFactoryConfiguration.cs
index 0fc05bf9..0ad4f335 100644
--- a/source/Unity/Src/StaticFactory/IStaticFactoryConfiguration.cs
+++ b/source/Src/Unity-CoreClr/StaticFactory/IStaticFactoryConfiguration.cs
@@ -2,7 +2,7 @@
using System;
-namespace Microsoft.Practices.Unity.StaticFactory
+namespace Unity.StaticFactory
{
///
/// Interface defining the configuration interface exposed by the
diff --git a/source/Unity/Src/StaticFactory/StaticFactoryExtension.cs b/source/Src/Unity-CoreClr/StaticFactory/StaticFactoryExtension.cs
similarity index 97%
rename from source/Unity/Src/StaticFactory/StaticFactoryExtension.cs
rename to source/Src/Unity-CoreClr/StaticFactory/StaticFactoryExtension.cs
index 01859fc2..370cd8be 100644
--- a/source/Unity/Src/StaticFactory/StaticFactoryExtension.cs
+++ b/source/Src/Unity-CoreClr/StaticFactory/StaticFactoryExtension.cs
@@ -2,7 +2,7 @@
using System;
-namespace Microsoft.Practices.Unity.StaticFactory
+namespace Unity.StaticFactory
{
///
/// A that lets you register a
diff --git a/source/Unity/Src/TypeBasedOverride.cs b/source/Src/Unity-CoreClr/TypeBasedOverride.cs
similarity index 96%
rename from source/Unity/Src/TypeBasedOverride.cs
rename to source/Src/Unity-CoreClr/TypeBasedOverride.cs
index f593d0c3..824b2c5c 100644
--- a/source/Unity/Src/TypeBasedOverride.cs
+++ b/source/Src/Unity-CoreClr/TypeBasedOverride.cs
@@ -4,10 +4,10 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
-using Microsoft.Practices.ObjectBuilder2;
-using Microsoft.Practices.Unity.Utility;
+using ObjectBuilder2;
+using Unity.Utility;
-namespace Microsoft.Practices.Unity
+namespace Unity
{
///
/// An implementation of that
diff --git a/source/Src/Unity-CoreClr/Unity-CoreClr.xproj b/source/Src/Unity-CoreClr/Unity-CoreClr.xproj
new file mode 100644
index 00000000..fb08c712
--- /dev/null
+++ b/source/Src/Unity-CoreClr/Unity-CoreClr.xproj
@@ -0,0 +1,21 @@
+
+
+
+ 14.0
+ $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
+
+
+
+ 2864072c-44ec-4d9d-bed9-c6176148ec86
+ Unity
+ ..\..\..\artifacts\obj\$(MSBuildProjectName)
+ ..\..\..\artifacts\bin\$(MSBuildProjectName)\
+
+
+ 2.0
+
+
+ True
+
+
+
\ No newline at end of file
diff --git a/source/Unity/Src/Unity.csproj b/source/Src/Unity-CoreClr/Unity.CoreClr.csproj
similarity index 94%
rename from source/Unity/Src/Unity.csproj
rename to source/Src/Unity-CoreClr/Unity.CoreClr.csproj
index 603c388c..01ec6472 100644
--- a/source/Unity/Src/Unity.csproj
+++ b/source/Src/Unity-CoreClr/Unity.CoreClr.csproj
@@ -6,17 +6,22 @@
9.0.30729
2.0
{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- v4.5
- Profile259
+ v4.0
+ Profile344
Library
Properties
Microsoft.Practices.Unity
Microsoft.Practices.Unity
- 3.5
+ 4.0
+ false
+ {EE1F752C-1FAB-41AD-AD63-857D0E62AB6B}
+ 10.0
+ ..\..\..\
+ true
publish\
true
Disk
@@ -29,11 +34,8 @@
true
0
1.0.0.%2a
- false
false
true
- {EE1F752C-1FAB-41AD-AD63-857D0E62AB6B}
- 12.0
true
@@ -231,6 +233,7 @@
Unity.licenseheader
+
@@ -240,12 +243,20 @@
-
- ..\..\packages\CommonServiceLocator.1.3\lib\portable-net4+sl5+netcore45+wpa81+wp8\Microsoft.Practices.ServiceLocation.dll
-
+
+ False
+ .NET Framework 3.5 SP1 Client Profile
+ false
+
+
+ False
+ .NET Framework 3.5 SP1
+ false
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- An abstract ContainerConfiguringElement cannot be created. Please specify a concrete type.
-
-
- An abstract ExtensionConfigurationElement object cannot be created. Please specify a concrete type.
-
-
- An abstract InjectionMemberElement object cannot be created. Please specify a concrete type.
-
-
- An abstract ParameterValueElement object cannot be created. Please specify a concrete type.
-
-
- The type name or alias {0} could not be resolved. Please check your configuration file and verify this type name.
-
-
- The dependency element for generic parameter {0} must not have an explicit type name but has '{1}'.
-
-
- The optional dependency element for generic parameter {0} must not have an explicit type name but has '{1}'.
-
-
- {0} {1}
-
-
- The injection configuration for {0} has multiple values.
-
-
- The configuration element type {0} has not been registered with the section.
-
-
- The injection configuration for {0} is specified through both attributes and child value elements.
-
-
- Could not load section extension type {0}.
-
-
- The extension type {0} does not derive from SectionExtension.
-
-
- The extension element type {0} that is being added does not derive from ContainerConfiguringElement, InjectionMemberElement, or ParameterValueElement. An extension element must derive from one of these types.
-
-
- No valid attributes were found to construct the value for the {0}. Please check the configuration file.
-
-
- Configuration is incorrect, the type {0} does not have a constructor that takes parameters named {1}.
-
-
- Configuration is incorrect, the type {0} does not have a method named {1} that takes parameters named {2}.
-
-
- The container named "{0}" is not defined in this configuration section.
-
-
- The type {0} does not have a property named {1}.
-
-
- The configuration is set to inject an array, but the type {0} is not an array type.
-
-
- parameter
-
-
- property
-
-
- The attribute {0} must be present and non-empty.
-
-
- The value element for {1} was specified for the generic array type {0}. Value elements are not allowed for generic array types.
-
-
- The value element for {1} was specified for the generic parameter type {0}. Value elements are not allowed for generic parameter types.
-
-
- The value element for {1} was specified for the generic type {0}. Value elements are not allowed for generic types.
-
-
\ No newline at end of file
diff --git a/source/Unity.Configuration/Src/PropertyElement.cs b/source/Unity.Configuration/Src/PropertyElement.cs
deleted file mode 100644
index cc34de9d..00000000
--- a/source/Unity.Configuration/Src/PropertyElement.cs
+++ /dev/null
@@ -1,191 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Collections.Generic;
-using System.Configuration;
-using System.Globalization;
-using System.Xml;
-using Microsoft.Practices.Unity.Configuration.ConfigurationHelpers;
-using Microsoft.Practices.Unity.Configuration.Properties;
-using Microsoft.Practices.Unity.Utility;
-
-namespace Microsoft.Practices.Unity.Configuration
-{
- ///
- /// A class representing a property configuration element.
- ///
- public class PropertyElement : InjectionMemberElement, IValueProvidingElement
- {
- private const string NamePropertyName = "name";
- private readonly ValueElementHelper valueElementHelper;
- private ParameterValueElement valueElement;
-
- ///
- /// Construct a new instance of
- ///
- public PropertyElement()
- {
- this.valueElementHelper = new ValueElementHelper(this);
- }
-
- ///
- /// Name of the property that will be set.
- ///
- [ConfigurationProperty(NamePropertyName, IsRequired = true)]
- public string Name
- {
- get { return (string)base[NamePropertyName]; }
- set { base[NamePropertyName] = value; }
- }
-
- ///
- /// Each element must have a unique key, which is generated by the subclasses.
- ///
- public override string Key
- {
- get { return "property:" + this.Name; }
- }
-
- ///
- /// String that will be deserialized to provide the value.
- ///
- public ParameterValueElement Value
- {
- get { return ValueElementHelper.GetValue(this.valueElement); }
- set { this.valueElement = value; }
- }
-
- ParameterValueElement IValueProvidingElement.Value
- {
- get { return this.valueElement; }
- set { this.Value = value; }
- }
-
- ///
- /// A string describing where the value this element contains
- /// is being used. For example, if setting a property Prop1,
- /// this should return "property Prop1" (in english).
- ///
- public string DestinationName
- {
- get
- {
- return string.Format(CultureInfo.CurrentCulture,
- Resources.DestinationNameFormat,
- Resources.Property, this.Name);
- }
- }
-
- ///
- /// Element name to use to serialize this into XML.
- ///
- public override string ElementName
- {
- get { return "property"; }
- }
-
- ///
- /// Reads XML from the configuration file.
- ///
- /// The that reads from the configuration file.
- /// true to serialize only the collection key properties; otherwise, false.
- /// The element to read is locked.
- /// - or -
- /// An attribute of the current node is not recognized.
- /// - or -
- /// The lock status of the current node cannot be determined.
- ///
- protected override void DeserializeElement(System.Xml.XmlReader reader, bool serializeCollectionKey)
- {
- base.DeserializeElement(reader, serializeCollectionKey);
- this.valueElementHelper.CompleteValueElement(reader);
- }
-
- ///
- /// Gets a value indicating whether an unknown attribute is encountered during deserialization.
- ///
- ///
- /// true when an unknown attribute is encountered while deserializing; otherwise, false.
- ///
- /// The name of the unrecognized attribute.
- /// The value of the unrecognized attribute.
- protected override bool OnDeserializeUnrecognizedAttribute(string name, string value)
- {
- return this.valueElementHelper.DeserializeUnrecognizedAttribute(name, value);
- }
-
- ///
- /// Gets a value indicating whether an unknown element is encountered during deserialization.
- ///
- ///
- /// true when an unknown element is encountered while deserializing; otherwise, false.
- ///
- /// The name of the unknown subelement.
- /// The being used for deserialization.
- /// The element identified by is locked.
- /// - or -
- /// One or more of the element's attributes is locked.
- /// - or -
- /// is unrecognized, or the element has an unrecognized attribute.
- /// - or -
- /// The element has a Boolean attribute with an invalid value.
- /// - or -
- /// An attempt was made to deserialize a property more than once.
- /// - or -
- /// An attempt was made to deserialize a property that is not a valid member of the element.
- /// - or -
- /// The element cannot contain a CDATA or text element.
- ///
- protected override bool OnDeserializeUnrecognizedElement(string elementName, System.Xml.XmlReader reader)
- {
- return
- this.valueElementHelper.DeserializeUnknownElement(elementName, reader) ||
- base.OnDeserializeUnrecognizedElement(elementName, reader);
- }
-
- ///
- /// Write the contents of this element to the given .
- ///
- /// The caller of this method has already written the start element tag before
- /// calling this method, so deriving classes only need to write the element content, not
- /// the start or end tags.
- /// Writer to send XML content to.
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods",
- Justification = "Validation done by Guard class")]
- public override void SerializeContent(XmlWriter writer)
- {
- Guard.ArgumentNotNull(writer, "writer");
- writer.WriteAttributeString(NamePropertyName, this.Name);
- ValueElementHelper.SerializeParameterValueElement(writer, this.Value, false);
- }
-
- ///
- /// Return the set of s that are needed
- /// to configure the container according to this configuration element.
- ///
- /// Container that is being configured.
- /// Type that is being registered.
- /// Type that is being mapped to.
- /// Name this registration is under.
- /// One or more objects that should be
- /// applied to the container registration.
- public override IEnumerable GetInjectionMembers(IUnityContainer container, Type fromType, Type toType, string name)
- {
- return new[] { new InjectionProperty(this.Name, this.Value.GetInjectionParameterValue(container, this.GetPropertyType(toType))) };
- }
-
- private Type GetPropertyType(Type typeContainingProperty)
- {
- var propertyInfo = typeContainingProperty.GetProperty(this.Name);
- if (propertyInfo == null)
- {
- throw new InvalidOperationException(
- string.Format(CultureInfo.CurrentCulture,
- Resources.NoSuchProperty,
- typeContainingProperty.Name, this.Name));
- }
-
- return propertyInfo.PropertyType;
- }
- }
-}
diff --git a/source/Unity.Configuration/Src/RegisterElement.cs b/source/Unity.Configuration/Src/RegisterElement.cs
deleted file mode 100644
index 7e3e7681..00000000
--- a/source/Unity.Configuration/Src/RegisterElement.cs
+++ /dev/null
@@ -1,138 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Collections.Generic;
-using System.Configuration;
-using System.Linq;
-using System.Xml;
-using Microsoft.Practices.Unity.Configuration.ConfigurationHelpers;
-
-namespace Microsoft.Practices.Unity.Configuration
-{
- ///
- /// A configuration element representing a single container type registration.
- ///
- public class RegisterElement : ContainerConfiguringElement
- {
- private const string InjectionMembersPropertyName = "";
- private const string LifetimePropertyName = "lifetime";
- private const string MapToPropertyName = "mapTo";
- private const string NamePropertyName = "name";
- private const string TypePropertyName = "type";
-
- ///
- /// The type that is registered.
- ///
- [ConfigurationProperty(TypePropertyName, IsRequired = true, IsKey = true)]
- public string TypeName
- {
- get { return (string)base[TypePropertyName]; }
- set { base[TypePropertyName] = value; }
- }
-
- ///
- /// Name registered under.
- ///
- [ConfigurationProperty(NamePropertyName, DefaultValue = "", IsRequired = false, IsKey = true)]
- public string Name
- {
- get { return (string)base[NamePropertyName]; }
- set { base[NamePropertyName] = value; }
- }
-
- ///
- /// Type that is mapped to.
- ///
- [ConfigurationProperty(MapToPropertyName, DefaultValue = "", IsRequired = false)]
- public string MapToName
- {
- get { return (string)base[MapToPropertyName]; }
- set { base[MapToPropertyName] = value; }
- }
-
- ///
- /// Lifetime manager to register for this registration.
- ///
- [ConfigurationProperty(LifetimePropertyName, IsRequired = false)]
- public LifetimeElement Lifetime
- {
- get { return (LifetimeElement)base[LifetimePropertyName]; }
- set { base[LifetimePropertyName] = value; }
- }
-
- ///
- /// Any injection members (constructor, properties, etc.) that are specified for
- /// this registration.
- ///
- [ConfigurationProperty(InjectionMembersPropertyName, IsDefaultCollection = true)]
- public InjectionMemberElementCollection InjectionMembers
- {
- get { return (InjectionMemberElementCollection)base[InjectionMembersPropertyName]; }
- }
-
- ///
- /// Apply the registrations from this element to the given container.
- ///
- /// Container to configure.
- protected override void ConfigureContainer(IUnityContainer container)
- {
- Type registeringType = this.GetRegisteringType();
- Type mappedType = this.GetMappedType();
- LifetimeManager lifetime = this.Lifetime.CreateLifetimeManager();
- IEnumerable injectionMembers =
- this.InjectionMembers.SelectMany(m => m.GetInjectionMembers(container, registeringType, mappedType, this.Name));
- container.RegisterType(registeringType, mappedType, this.Name, lifetime, injectionMembers.ToArray());
- }
-
- ///
- /// Write the contents of this element to the given .
- ///
- /// The caller of this method has already written the start element tag before
- /// calling this method, so deriving classes only need to write the element content, not
- /// the start or end tags.
- /// Writer to send XML content to.
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods",
- Justification = "Validation done by Guard class")]
- public override void SerializeContent(XmlWriter writer)
- {
- Microsoft.Practices.Unity.Utility.Guard.ArgumentNotNull(writer, "writer");
-
- writer.WriteAttributeString(TypePropertyName, this.TypeName);
- writer.WriteAttributeIfNotEmpty(MapToPropertyName, this.MapToName)
- .WriteAttributeIfNotEmpty(NamePropertyName, this.Name);
-
- if (!string.IsNullOrEmpty(this.Lifetime.TypeName))
- {
- writer.WriteElement("lifetime", this.Lifetime.SerializeContent);
- }
-
- this.SerializeInjectionMembers(writer);
- }
-
- private Type GetRegisteringType()
- {
- if (!string.IsNullOrEmpty(this.MapToName))
- {
- return TypeResolver.ResolveType(this.TypeName);
- }
- return null;
- }
-
- private Type GetMappedType()
- {
- if (string.IsNullOrEmpty(this.MapToName))
- {
- return TypeResolver.ResolveType(this.TypeName);
- }
- return TypeResolver.ResolveType(this.MapToName);
- }
-
- private void SerializeInjectionMembers(XmlWriter writer)
- {
- foreach (var member in this.InjectionMembers)
- {
- writer.WriteElement(member.ElementName, member.SerializeContent);
- }
- }
- }
-}
diff --git a/source/Unity.Configuration/Src/RegisterElementCollection.cs b/source/Unity.Configuration/Src/RegisterElementCollection.cs
deleted file mode 100644
index a39a1968..00000000
--- a/source/Unity.Configuration/Src/RegisterElementCollection.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System.Configuration;
-using System.Xml;
-using Microsoft.Practices.Unity.Configuration.ConfigurationHelpers;
-
-namespace Microsoft.Practices.Unity.Configuration
-{
- ///
- /// A collection of s.
- ///
- [ConfigurationCollection(typeof(RegisterElement), AddItemName = "register")]
- public class RegisterElementCollection : DeserializableConfigurationElementCollection
- {
- private static readonly UnknownElementHandlerMap UnknownElementHandlerMap
- = new UnknownElementHandlerMap
- {
- { "type", (rec, xr) => rec.ReadUnwrappedElement(xr, rec) }
- };
-
- ///
- /// Causes the configuration system to throw an exception.
- ///
- ///
- /// true if the unrecognized element was deserialized successfully; otherwise, false. The default is false.
- ///
- /// The name of the unrecognized element.
- /// An input stream that reads XML from the configuration file.
- /// The element specified in is the <clear> element.
- /// starts with the reserved prefix "config" or "lock".
- protected override bool OnDeserializeUnrecognizedElement(string elementName, XmlReader reader)
- {
- return UnknownElementHandlerMap.ProcessElement(this, elementName, reader) ||
- base.OnDeserializeUnrecognizedElement(elementName, reader);
- }
-
- ///
- /// Gets the element key for a specified configuration element when overridden in a derived class.
- ///
- ///
- /// An that acts as the key for the specified .
- ///
- /// The to return the key for.
- protected override object GetElementKey(ConfigurationElement element)
- {
- var registerElement = (RegisterElement)element;
- return registerElement.TypeName + ":" + registerElement.Name;
- }
- }
-}
diff --git a/source/Unity.Configuration/Src/SectionExtension.cs b/source/Unity.Configuration/Src/SectionExtension.cs
deleted file mode 100644
index 32e9edd3..00000000
--- a/source/Unity.Configuration/Src/SectionExtension.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-namespace Microsoft.Practices.Unity.Configuration
-{
- ///
- /// Base class for Unity configuration section extensions.
- /// Derived classes are used to add custom elements and aliases
- /// into the configuration section being loaded.
- ///
- public abstract class SectionExtension
- {
- ///
- /// Add the extensions to the section via the context.
- ///
- /// Context object that can be used to add elements and aliases.
- public abstract void AddExtensions(SectionExtensionContext context);
- }
-}
diff --git a/source/Unity.Configuration/Src/SectionExtensionContext.cs b/source/Unity.Configuration/Src/SectionExtensionContext.cs
deleted file mode 100644
index 6f18dfe1..00000000
--- a/source/Unity.Configuration/Src/SectionExtensionContext.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Diagnostics.CodeAnalysis;
-using Microsoft.Practices.Unity.Configuration.ConfigurationHelpers;
-
-namespace Microsoft.Practices.Unity.Configuration
-{
- ///
- /// An object that gives the ability to add
- /// elements and aliases to a configuration section.
- ///
- public abstract class SectionExtensionContext
- {
- ///
- /// Add a new alias to the configuration section. This is useful
- /// for those extensions that add commonly used types to configuration
- /// so users don't have to alias them repeatedly.
- ///
- /// The alias to use.
- /// Type the alias maps to.
- public abstract void AddAlias(string newAlias, Type aliasedType);
-
- ///
- /// Add a new alias to the configuration section. This is useful
- /// for those extensions that add commonly used types to configuration
- /// so users don't have to alias them repeatedly.
- ///
- /// Type the alias maps to.
- /// The alias to use
- [SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter",
- Justification = "TAliased is required to do the mapping between the alias and the type")]
- public void AddAlias(string alias)
- {
- AddAlias(alias, typeof(TAliased));
- }
-
- ///
- /// Add a new element to the configuration section schema.
- ///
- /// Tag name in the XML.
- /// Type the tag maps to.
- public abstract void AddElement(string tag, Type elementType);
-
- ///
- /// Add a new element to the configuration section schema.
- ///
- /// Type the tag maps to.
- /// Tag name in the XML.
- [SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter",
- Justification = "TElement is required to map the tag to the element type")]
- public void AddElement(string tag)
- where TElement : DeserializableConfigurationElement
- {
- AddElement(tag, typeof(TElement));
- }
- }
-}
diff --git a/source/Unity.Configuration/Src/SectionExtensionElement.cs b/source/Unity.Configuration/Src/SectionExtensionElement.cs
deleted file mode 100644
index d13e60d1..00000000
--- a/source/Unity.Configuration/Src/SectionExtensionElement.cs
+++ /dev/null
@@ -1,122 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Configuration;
-using System.Globalization;
-using System.Xml;
-using Microsoft.Practices.Unity.Configuration.ConfigurationHelpers;
-using Microsoft.Practices.Unity.Configuration.Properties;
-using Microsoft.Practices.Unity.Utility;
-
-namespace Microsoft.Practices.Unity.Configuration
-{
- ///
- /// A configuration element used to specify which extensions to
- /// add to the configuration schema.
- ///
- public class SectionExtensionElement : DeserializableConfigurationElement
- {
- private const string TypeNamePropertyName = "type";
- private const string PrefixPropertyName = "prefix";
-
- private SectionExtension extensionObject;
-
- ///
- /// Type of the section extender object that will provide new elements to the schema.
- ///
- [ConfigurationProperty(TypeNamePropertyName, IsRequired = true, IsKey = true)]
- public string TypeName
- {
- get { return (string)base[TypeNamePropertyName]; }
- set
- {
- base[TypeNamePropertyName] = value;
- this.extensionObject = null;
- }
- }
-
- ///
- /// Optional prefix that will be added to the element names added by this
- /// section extender. If left out, no prefix will be added.
- ///
- [ConfigurationProperty(PrefixPropertyName, IsRequired = false)]
- public string Prefix
- {
- get { return (string)base[PrefixPropertyName]; }
- set { base[PrefixPropertyName] = value; }
- }
-
- ///
- /// The extension object represented by this element.
- ///
- public SectionExtension ExtensionObject
- {
- get
- {
- if (this.extensionObject == null)
- {
- this.extensionObject = (SectionExtension)Activator.CreateInstance(this.GetExtensionObjectType());
- }
- return this.extensionObject;
- }
- }
-
- ///
- /// Reads XML from the configuration file.
- ///
- /// The that reads from the configuration file.
- /// true to serialize only the collection key properties; otherwise, false.
- /// The element to read is locked.
- /// - or -
- /// An attribute of the current node is not recognized.
- /// - or -
- /// The lock status of the current node cannot be determined.
- ///
- protected override void DeserializeElement(XmlReader reader, bool serializeCollectionKey)
- {
- base.DeserializeElement(reader, serializeCollectionKey);
- this.GetExtensionObjectType();
- }
-
- ///
- /// Write the contents of this element to the given .
- ///
- /// The caller of this method has already written the start element tag before
- /// calling this method, so deriving classes only need to write the element content, not
- /// the start or end tags.
- /// Writer to send XML content to.
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods",
- Justification = "Validation done by Guard class")]
- public override void SerializeContent(XmlWriter writer)
- {
- Guard.ArgumentNotNull(writer, "writer");
- writer.WriteAttributeString(SectionExtensionElement.TypeNamePropertyName, this.TypeName);
- if (!string.IsNullOrEmpty(this.Prefix))
- {
- writer.WriteAttributeString(SectionExtensionElement.PrefixPropertyName, this.Prefix);
- }
- }
-
- private void GuardIsValidExtensionType(Type extensionType)
- {
- if (extensionType == null)
- {
- throw new ConfigurationErrorsException(string.Format(CultureInfo.CurrentCulture,
- Resources.ExtensionTypeNotFound, this.TypeName));
- }
-
- if (!typeof(SectionExtension).IsAssignableFrom(extensionType))
- {
- throw new ConfigurationErrorsException(string.Format(CultureInfo.CurrentCulture,
- Resources.ExtensionTypeNotValid, this.TypeName));
- }
- }
-
- private Type GetExtensionObjectType()
- {
- Type extensionType = TypeResolver.ResolveType(this.TypeName);
- this.GuardIsValidExtensionType(extensionType);
- return extensionType;
- }
- }
-}
diff --git a/source/Unity.Configuration/Src/SectionExtensionElementCollection.cs b/source/Unity.Configuration/Src/SectionExtensionElementCollection.cs
deleted file mode 100644
index 2ad3c8da..00000000
--- a/source/Unity.Configuration/Src/SectionExtensionElementCollection.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System.Configuration;
-using Microsoft.Practices.Unity.Configuration.ConfigurationHelpers;
-
-namespace Microsoft.Practices.Unity.Configuration
-{
- ///
- /// A collection of s.
- ///
- [ConfigurationCollection(typeof(SectionExtensionElement))]
- public class SectionExtensionElementCollection :
- DeserializableConfigurationElementCollection
- {
- ///
- /// Gets the element key for a specified configuration element when overridden in a derived class.
- ///
- ///
- /// An that acts as the key for the specified .
- ///
- /// The to return the key for.
- protected override object GetElementKey(ConfigurationElement element)
- {
- var sectionElement = (SectionExtensionElement)element;
- string prefix = sectionElement.Prefix;
- if (!string.IsNullOrEmpty(prefix))
- {
- prefix = prefix + ".";
- }
-
- return prefix + sectionElement.TypeName;
- }
- }
-}
diff --git a/source/Unity.Configuration/Src/Unity.Configuration.csproj b/source/Unity.Configuration/Src/Unity.Configuration.csproj
deleted file mode 100644
index 88df87d6..00000000
--- a/source/Unity.Configuration/Src/Unity.Configuration.csproj
+++ /dev/null
@@ -1,201 +0,0 @@
-
-
-
- Debug
- AnyCPU
- 9.0.30729
- 2.0
- {AEF45ED2-3E7F-4AA5-9001-A4D1BAC12EBE}
- Library
- Properties
- Microsoft.Practices.Unity.Configuration
- Microsoft.Practices.Unity.Configuration
- v4.5
- 512
-
-
-
-
- 3.5
- publish\
- true
- Disk
- false
- Foreground
- 7
- Days
- false
- false
- true
- 0
- 1.0.0.%2a
- false
- false
- true
-
-
-
-
- true
- full
- false
- ..\..\bin\Desktop\Debug\
- DEBUG;TRACE
- prompt
- 4
- ..\..\bin\Desktop\Debug\Microsoft.Practices.Unity.Configuration.xml
- true
-
-
- ..\..\Unity.ruleset
- false
-
-
- pdbonly
- true
- ..\..\bin\Desktop\Release\
- TRACE
- prompt
- 4
- ..\..\bin\Desktop\Release\Microsoft.Practices.Unity.Configuration.XML
- true
- true
-
-
- ..\..\Unity.ruleset
- false
-
-
-
- False
- ..\..\packages\CommonServiceLocator.1.3\lib\portable-net4+sl5+netcore45+wpa81+wp8\Microsoft.Practices.ServiceLocation.dll
-
-
-
-
- 3.5
-
-
-
-
-
-
- GlobalAssemblyInfo.2010.cs
-
-
- GlobalAssemblyInfo.cs
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- True
- True
- Resources.resx
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Unity.licenseheader
-
-
- UnityConfiguration30.xsd
- Designer
- PreserveNewest
-
-
-
-
-
- ResXFileCodeGenerator
- Resources.Designer.cs
- Designer
-
-
-
-
- {EE1F752C-1FAB-41AD-AD63-857D0E62AB6B}
- Unity
-
-
-
-
- False
- .NET Framework 3.5 SP1 Client Profile
- false
-
-
- False
- .NET Framework 3.5 SP1
- true
-
-
- False
- Windows Installer 3.1
- true
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/Unity.Configuration/Src/UnityConfigurationSection.cs b/source/Unity.Configuration/Src/UnityConfigurationSection.cs
deleted file mode 100644
index 2425d043..00000000
--- a/source/Unity.Configuration/Src/UnityConfigurationSection.cs
+++ /dev/null
@@ -1,331 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Configuration;
-using System.Globalization;
-using System.Text;
-using System.Xml;
-using Microsoft.Practices.Unity.Configuration.ConfigurationHelpers;
-using Microsoft.Practices.Unity.Configuration.Properties;
-
-namespace Microsoft.Practices.Unity.Configuration
-{
- ///
- /// A configuration section describing configuration for an .
- ///
- public class UnityConfigurationSection : ConfigurationSection
- {
- ///
- /// The name of the section where unity configuration is expected to be found.
- ///
- public const string SectionName = "unity";
-
- ///
- /// XML Namespace string used for IntelliSense in this section.
- ///
- public const string XmlNamespace = "http://schemas.microsoft.com/practices/2010/unity";
-
- private const string ContainersPropertyName = "";
- private const string TypeAliasesPropertyName = "aliases";
- private const string SectionExtensionsPropertyName = "extensions";
- private const string NamespacesPropertyName = "namespaces";
- private const string AssembliesPropertyName = "assemblies";
- private const string XmlnsPropertyName = "xmlns";
-
- private static readonly UnknownElementHandlerMap UnknownElementHandlerMap
- = new UnknownElementHandlerMap
- {
- { "typeAliases", (s, xr) => s.TypeAliases.Deserialize(xr) },
- { "containers", (s, xr) => s.Containers.Deserialize(xr) },
- { "alias", (s, xr) => s.ReadUnwrappedElement(xr, s.TypeAliases) },
- { "sectionExtension", (s, xr) => s.DeserializeSectionExtension(xr) },
- { "namespace", (s, xr) => s.ReadUnwrappedElement(xr, s.Namespaces) },
- { "assembly", (s, xr) => s.ReadUnwrappedElement(xr, s.Assemblies) }
- };
-
- [ThreadStatic]
- private static UnityConfigurationSection currentSection;
-
- ///
- /// The current that is being deserialized
- /// or being configured from.
- ///
- public static UnityConfigurationSection CurrentSection
- {
- get { return currentSection; }
- }
-
- ///
- /// Storage for XML namespace. The namespace isn't used or validated by config, but
- /// it is useful for Visual Studio XML IntelliSense to kick in.
- ///
- [ConfigurationProperty(XmlnsPropertyName, IsRequired = false, DefaultValue = XmlNamespace)]
- public string Xmlns
- {
- get { return (string)base[XmlnsPropertyName]; }
- set { base[XmlnsPropertyName] = value; }
- }
-
- ///
- /// The set of containers defined in this configuration section.
- ///
- [ConfigurationProperty(ContainersPropertyName, IsDefaultCollection = true)]
- public ContainerElementCollection Containers
- {
- get
- {
- var containers = (ContainerElementCollection)base[ContainersPropertyName];
- containers.ContainingSection = this;
- return containers;
- }
- }
-
- ///
- /// The set of type aliases defined in this configuration file.
- ///
- [ConfigurationProperty(TypeAliasesPropertyName)]
- public AliasElementCollection TypeAliases
- {
- get { return (AliasElementCollection)base[TypeAliasesPropertyName]; }
- }
-
- ///
- /// Any schema extensions that are added.
- ///
- [ConfigurationProperty(SectionExtensionsPropertyName)]
- public SectionExtensionElementCollection SectionExtensions
- {
- get { return (SectionExtensionElementCollection)base[SectionExtensionsPropertyName]; }
- }
-
- ///
- /// Any namespaces added to the type search list.
- ///
- [ConfigurationProperty(NamespacesPropertyName)]
- public NamespaceElementCollection Namespaces
- {
- get { return (NamespaceElementCollection)base[NamespacesPropertyName]; }
- }
-
- ///
- /// Any assemblies added to the type search list.
- ///
- [ConfigurationProperty(AssembliesPropertyName)]
- public AssemblyElementCollection Assemblies
- {
- get { return (AssemblyElementCollection)base[AssembliesPropertyName]; }
- }
-
- ///
- /// Apply the configuration in the default container element to the given container.
- ///
- /// Container to configure.
- /// The passed in .
- public IUnityContainer Configure(IUnityContainer container)
- {
- return this.Configure(container, String.Empty);
- }
-
- ///
- /// Apply the configuration in the default container element to the given container.
- ///
- /// Container to configure.
- /// Name of the container element to use to configure the container.
- /// The passed in .
- public IUnityContainer Configure(IUnityContainer container, string configuredContainerName)
- {
- currentSection = this;
- TypeResolver.SetAliases(this);
- var containerElement = GuardContainerExists(configuredContainerName, this.Containers[configuredContainerName]);
-
- containerElement.ConfigureContainer(container);
- return container;
- }
-
- private static ContainerElement GuardContainerExists(string configuredContainerName, ContainerElement containerElement)
- {
- if (containerElement == null)
- {
- throw new ArgumentException(
- string.Format(CultureInfo.CurrentCulture,
- Resources.NoSuchContainer, configuredContainerName),
- "configuredContainerName");
- }
- return containerElement;
- }
-
- ///
- /// Reads XML from the configuration file.
- ///
- /// The object, which reads from the configuration file.
- /// found no elements in the configuration file.
- protected override void DeserializeSection(XmlReader reader)
- {
- ExtensionElementMap.Clear();
- currentSection = this;
- base.DeserializeSection(reader);
- }
-
- ///
- /// Gets a value indicating whether an unknown element is encountered during deserialization.
- ///
- ///
- /// true when an unknown element is encountered while deserializing; otherwise, false.
- ///
- /// The name of the unknown subelement.
- /// The being used for deserialization.
- ///
- /// The element identified by is locked.
- /// - or -
- /// One or more of the element's attributes is locked.
- /// - or -
- /// is unrecognized, or the element has an unrecognized attribute.
- /// - or -
- /// The element has a Boolean attribute with an invalid value.
- /// - or -
- /// An attempt was made to deserialize a property more than once.
- /// - or -
- /// An attempt was made to deserialize a property that is not a valid member of the element.
- /// - or -
- /// The element cannot contain a CDATA or text element.
- ///
- protected override bool OnDeserializeUnrecognizedElement(string elementName, XmlReader reader)
- {
- return UnknownElementHandlerMap.ProcessElement(this, elementName, reader) ||
- base.OnDeserializeUnrecognizedElement(elementName, reader);
- }
-
- private void DeserializeSectionExtension(XmlReader reader)
- {
- TypeResolver.SetAliases(this);
- var element = this.ReadUnwrappedElement(reader, this.SectionExtensions);
- element.ExtensionObject.AddExtensions(new ExtensionContext(this, element.Prefix));
- }
-
- ///
- /// Creates an XML string containing an unmerged view of the object as a single section to write to a file.
- ///
- ///
- /// An XML string containing an unmerged view of the object.
- ///
- /// The instance to use as the parent when performing the un-merge.
- /// The name of the section to create.
- /// The instance to use when writing to a string.
- protected override string SerializeSection(ConfigurationElement parentElement, string name, ConfigurationSaveMode saveMode)
- {
- ExtensionElementMap.Clear();
- currentSection = this;
- TypeResolver.SetAliases(this);
- this.InitializeSectionExtensions();
-
- var sb = new StringBuilder();
- using (var writer = MakeXmlWriter(sb))
- {
- writer.WriteStartElement(name, XmlNamespace);
- writer.WriteAttributeString("xmlns", XmlNamespace);
- this.TypeAliases.SerializeElementContents(writer, "alias");
- this.Namespaces.SerializeElementContents(writer, "namespace");
- this.Assemblies.SerializeElementContents(writer, "assembly");
- this.SectionExtensions.SerializeElementContents(writer, "sectionExtension");
- this.Containers.SerializeElementContents(writer, "container");
- writer.WriteEndElement();
- }
-
- return sb.ToString();
- }
-
- private static XmlWriter MakeXmlWriter(StringBuilder sb)
- {
- var settings = new XmlWriterSettings
- {
- Indent = true,
- OmitXmlDeclaration = true,
- ConformanceLevel = ConformanceLevel.Fragment
- };
-
- return XmlWriter.Create(sb, settings);
- }
-
- private void InitializeSectionExtensions()
- {
- foreach (var extensionElement in this.SectionExtensions)
- {
- SectionExtension extensionObject = extensionElement.ExtensionObject;
- extensionObject.AddExtensions(new ExtensionContext(this, extensionElement.Prefix, false));
- }
- }
-
- private class ExtensionContext : SectionExtensionContext
- {
- private readonly UnityConfigurationSection section;
- private readonly string prefix;
- private readonly bool saveAliases;
-
- public ExtensionContext(UnityConfigurationSection section, string prefix)
- : this(section, prefix, true)
- {
- }
-
- public ExtensionContext(UnityConfigurationSection section, string prefix, bool saveAliases)
- {
- this.section = section;
- this.prefix = prefix;
- this.saveAliases = saveAliases;
- }
-
- ///
- /// Add a new alias to the configuration section. This is useful
- /// for those extensions that add commonly used types to configuration
- /// so users don't have to alias them repeatedly.
- ///
- /// The alias to use.
- /// Type the alias maps to.
- public override void AddAlias(string newAlias, Type aliasedType)
- {
- if (!this.saveAliases)
- {
- return;
- }
-
- string alias = newAlias;
- if (!string.IsNullOrEmpty(this.prefix))
- {
- alias = this.prefix + "." + alias;
- }
-
- this.section.TypeAliases.Add(new AliasElement(alias, aliasedType));
- }
-
- ///
- /// Add a new element to the configuration section schema.
- ///
- /// Tag name in the XML.
- /// Type the tag maps to.
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods",
- Justification = "Validation done by Guard class")]
- public override void AddElement(string tag, Type elementType)
- {
- Microsoft.Practices.Unity.Utility.Guard.ArgumentNotNull(elementType, "elementType");
-
- if (typeof(ContainerConfiguringElement).IsAssignableFrom(elementType))
- {
- ExtensionElementMap.AddContainerConfiguringElement(this.prefix, tag, elementType);
- }
- else if (typeof(InjectionMemberElement).IsAssignableFrom(elementType))
- {
- ExtensionElementMap.AddInjectionMemberElement(this.prefix, tag, elementType);
- }
- else if (typeof(ParameterValueElement).IsAssignableFrom(elementType))
- {
- ExtensionElementMap.AddParameterValueElement(this.prefix, tag, elementType);
- }
- else
- {
- throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
- Resources.InvalidExtensionElementType,
- elementType.Name));
- }
- }
- }
- }
-}
diff --git a/source/Unity.Configuration/Src/UnityContainerConfigurationExtensions.cs b/source/Unity.Configuration/Src/UnityContainerConfigurationExtensions.cs
deleted file mode 100644
index 7b2ecdb2..00000000
--- a/source/Unity.Configuration/Src/UnityContainerConfigurationExtensions.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Configuration;
-using Microsoft.Practices.Unity.Utility;
-
-namespace Microsoft.Practices.Unity.Configuration
-{
- ///
- /// Extensions to to simplify
- /// loading configuration into a container.
- ///
- public static class UnityContainerExtensions
- {
- ///
- /// Apply configuration from the given section and named container
- /// into the given container.
- ///
- /// Unity container to configure.
- /// Configuration section with config information.
- /// Named container.
- /// .
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods",
- Justification = "Validation done by Guard class")]
- public static IUnityContainer LoadConfiguration(this IUnityContainer container,
- UnityConfigurationSection section, string containerName)
- {
- Guard.ArgumentNotNull(container, "container");
- Guard.ArgumentNotNull(section, "section");
-
- section.Configure(container, containerName);
- return container;
- }
-
- ///
- /// Apply configuration from the default section (named "unity" pulled out of
- /// ConfigurationManager) and the named container.
- ///
- /// Unity container to configure.
- /// Named container element in configuration.
- /// .
- public static IUnityContainer LoadConfiguration(this IUnityContainer container, string containerName)
- {
- Guard.ArgumentNotNull(container, "container");
- var section = (UnityConfigurationSection)ConfigurationManager.GetSection("unity");
- return container.LoadConfiguration(section, containerName);
- }
-
- ///
- /// Apply configuration from the default section and unnamed container element.
- ///
- /// Container to configure.
- /// .
- public static IUnityContainer LoadConfiguration(this IUnityContainer container)
- {
- Guard.ArgumentNotNull(container, "container");
- var section = (UnityConfigurationSection)ConfigurationManager.GetSection("unity");
- return container.LoadConfiguration(section, String.Empty);
- }
-
- ///
- /// Apply configuration from the default container in the given section.
- ///
- /// Unity container to configure.
- /// Configuration section.
- /// .
- public static IUnityContainer LoadConfiguration(this IUnityContainer container, UnityConfigurationSection section)
- {
- Guard.ArgumentNotNull(container, "container");
- Guard.ArgumentNotNull(section, "section");
- return container.LoadConfiguration(section, String.Empty);
- }
- }
-}
diff --git a/source/Unity.Configuration/Src/ValueElement.cs b/source/Unity.Configuration/Src/ValueElement.cs
deleted file mode 100644
index 247f20e5..00000000
--- a/source/Unity.Configuration/Src/ValueElement.cs
+++ /dev/null
@@ -1,154 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Configuration;
-using System.Globalization;
-using System.Xml;
-using Microsoft.Practices.Unity.Configuration.ConfigurationHelpers;
-using Microsoft.Practices.Unity.Configuration.Properties;
-using Microsoft.Practices.Unity.Utility;
-
-namespace Microsoft.Practices.Unity.Configuration
-{
- ///
- /// Element that describes a constant value that will be
- /// injected into the container.
- ///
- public class ValueElement : ParameterValueElement, IAttributeOnlyElement
- {
- private const string ValuePropertyName = "value";
- private const string TypeConverterTypeNamePropertyName = "typeConverter";
-
- ///
- /// Construct a new object.
- ///
- public ValueElement()
- {
- }
-
- ///
- /// Construct a new object,
- /// initializing properties from the contents of
- /// .
- ///
- /// Name/value pairs which
- /// contain the values to initialize properties to.
- public ValueElement(IDictionary propertyValues)
- {
- ParameterValueElement.GuardPropertyValueIsPresent(propertyValues, "value");
- this.Value = propertyValues["value"];
- if (propertyValues.ContainsKey("typeConverter"))
- {
- this.TypeConverterTypeName = propertyValues["typeConverter"];
- }
- }
-
- ///
- /// Value for this element
- ///
- [ConfigurationProperty(ValuePropertyName)]
- public string Value
- {
- get { return (string)base[ValuePropertyName]; }
- set { base[ValuePropertyName] = value; }
- }
-
- ///
- ///
- ///
- [ConfigurationProperty(TypeConverterTypeNamePropertyName, IsRequired = false)]
- public string TypeConverterTypeName
- {
- get { return (string)base[TypeConverterTypeNamePropertyName]; }
- set { base[TypeConverterTypeNamePropertyName] = value; }
- }
-
- ///
- /// Write the contents of this element to the given .
- ///
- /// The caller of this method has already written the start element tag before
- /// calling this method, so deriving classes only need to write the element content, not
- /// the start or end tags.
- /// Writer to send XML content to.
- void IAttributeOnlyElement.SerializeContent(XmlWriter writer)
- {
- this.SerializeContent(writer);
- }
-
- ///
- /// Write the contents of this element to the given . This
- /// method always outputs an explicit <dependency> tag, instead of providing
- /// attributes to the parent method.
- ///
- /// Writer to send XML content to.
- public override void SerializeContent(XmlWriter writer)
- {
- writer.WriteAttributeIfNotEmpty(ValuePropertyName, this.Value)
- .WriteAttributeIfNotEmpty(TypeConverterTypeNamePropertyName, this.TypeConverterTypeName);
- }
-
- ///
- /// Generate an object
- /// that will be used to configure the container for a type registration.
- ///
- /// Container that is being configured. Supplied in order
- /// to let custom implementations retrieve services; do not configure the container
- /// directly in this method.
- /// Type of the parameter to get the value for.
- /// The required object.
- public override InjectionParameterValue GetInjectionParameterValue(IUnityContainer container, Type parameterType)
- {
- this.CheckNonGeneric(parameterType);
-
- var converter = this.GetTypeConverter(parameterType);
- return new InjectionParameter(parameterType, converter.ConvertFromInvariantString(this.Value));
- }
-
- private void CheckNonGeneric(Type parameterType)
- {
- if (parameterType.IsGenericParameter)
- {
- throw new InvalidOperationException(
- string.Format(
- CultureInfo.CurrentCulture,
- Resources.ValueNotAllowedForGenericParameterType,
- parameterType.Name,
- this.Value));
- }
-
- var reflector = new ReflectionHelper(parameterType);
-
- if (reflector.IsOpenGeneric)
- {
- throw new InvalidOperationException(
- string.Format(
- CultureInfo.CurrentCulture,
- Resources.ValueNotAllowedForOpenGenericType,
- parameterType.Name,
- this.Value));
- }
-
- if (reflector.IsGenericArray)
- {
- throw new InvalidOperationException(
- string.Format(
- CultureInfo.CurrentCulture,
- Resources.ValueNotAllowedForGenericArrayType,
- parameterType.Name,
- this.Value));
- }
- }
-
- private TypeConverter GetTypeConverter(Type parameterType)
- {
- if (!string.IsNullOrEmpty(this.TypeConverterTypeName))
- {
- Type converterType = TypeResolver.ResolveType(this.TypeConverterTypeName);
- return (TypeConverter)Activator.CreateInstance(converterType);
- }
- return TypeDescriptor.GetConverter(parameterType);
- }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/BootstrapFixture.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/BootstrapFixture.cs
deleted file mode 100644
index 4663649b..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/BootstrapFixture.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System.Configuration;
-using Microsoft.Practices.Unity.Configuration.Tests.ConfigFiles;
-using Microsoft.Practices.Unity.TestSupport.Configuration;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests
-{
- ///
- /// Basic bootstrapping to confirm that our "load from resources" config
- /// file helper works.
- ///
- [TestClass]
- public class BootstrapFixture
- {
- [TestMethod]
- public void CanReadBootstrapConfig()
- {
- var loader = new ConfigFileLoader("Bootstrap");
- var section = loader.GetSection("appSettings");
- Assert.IsNotNull(section);
- Assert.AreEqual("value", section.Settings["Test"].Value);
- }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/ArrayInjection.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/ArrayInjection.config
deleted file mode 100644
index 37daaee0..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/ArrayInjection.config
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/BasicTypeMapping.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/BasicTypeMapping.config
deleted file mode 100644
index a2bff632..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/BasicTypeMapping.config
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/Bootstrap.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/Bootstrap.config
deleted file mode 100644
index 6255438a..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/Bootstrap.config
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/ConfigFileLocator.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/ConfigFileLocator.cs
deleted file mode 100644
index cfadb344..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/ConfigFileLocator.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.ConfigFiles
-{
- // A dummy class solely used to locate the resources our config files
- // are stored under.
- public class ConfigFileLocator
- {
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/ContainerExtensions.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/ContainerExtensions.config
deleted file mode 100644
index 6be084f7..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/ContainerExtensions.config
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/EmptySection.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/EmptySection.config
deleted file mode 100644
index cf9fa868..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/EmptySection.config
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/Generics.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/Generics.config
deleted file mode 100644
index 9b887cee..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/Generics.config
+++ /dev/null
@@ -1,224 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/InjectingGenerics.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/InjectingGenerics.config
deleted file mode 100644
index c51dff70..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/InjectingGenerics.config
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/InjectingProperties.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/InjectingProperties.config
deleted file mode 100644
index 9761ae3b..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/InjectingProperties.config
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/Lifetimes.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/Lifetimes.config
deleted file mode 100644
index 8db83dc3..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/Lifetimes.config
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/MethodInjection.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/MethodInjection.config
deleted file mode 100644
index fd593651..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/MethodInjection.config
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/OldAliasesSyntax.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/OldAliasesSyntax.config
deleted file mode 100644
index 08b56b7d..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/OldAliasesSyntax.config
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/OldContainersSyntax.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/OldContainersSyntax.config
deleted file mode 100644
index 7c4b30b7..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/OldContainersSyntax.config
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/OldTypeMappingSyntax.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/OldTypeMappingSyntax.config
deleted file mode 100644
index 1c92de15..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/OldTypeMappingSyntax.config
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/OptionalDependency.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/OptionalDependency.config
deleted file mode 100644
index ad48de0a..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/OptionalDependency.config
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/RegisteringInstances.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/RegisteringInstances.config
deleted file mode 100644
index de4b2024..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/RegisteringInstances.config
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/RegistrationWithConstructors.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/RegistrationWithConstructors.config
deleted file mode 100644
index fba79cb3..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/RegistrationWithConstructors.config
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/SectionExtensions.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/SectionExtensions.config
deleted file mode 100644
index e61784cd..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/SectionExtensions.config
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/SingleSectionMultipleNamedContainers.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/SingleSectionMultipleNamedContainers.config
deleted file mode 100644
index 969ba86d..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/SingleSectionMultipleNamedContainers.config
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/SingleSectionSingleContainer.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/SingleSectionSingleContainer.config
deleted file mode 100644
index b5aa4651..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/SingleSectionSingleContainer.config
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/TwoContainersAndAliases.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/TwoContainersAndAliases.config
deleted file mode 100644
index 6a706442..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/TwoContainersAndAliases.config
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/VariousConstructors.config b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/VariousConstructors.config
deleted file mode 100644
index ae392866..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/ConfigFiles/VariousConstructors.config
+++ /dev/null
@@ -1,86 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/Properties/AssemblyInfo.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/Properties/AssemblyInfo.cs
deleted file mode 100644
index dedb7929..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("Unity.Configuration.Tests")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Microsoft")]
-[assembly: AssemblyProduct("Unity.Configuration.Tests")]
-[assembly: AssemblyCopyright("Copyright © Microsoft 2011,2012")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM componenets. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("495ed8b8-041e-4c0c-abcb-39fc4749fb27")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Revision and Build Numbers
-// by using the '*' as shown below:
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/ArrayDependencyObject.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/ArrayDependencyObject.cs
deleted file mode 100644
index c02b9d1b..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/ArrayDependencyObject.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using Microsoft.Practices.Unity.TestSupport;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects
-{
- internal class ArrayDependencyObject
- {
- public ILogger[] Loggers { get; set; }
-
- public string[] Strings { get; set; }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/ContainerConfigElementOne.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/ContainerConfigElementOne.cs
deleted file mode 100644
index 76f206a1..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/ContainerConfigElementOne.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects
-{
- internal class ContainerConfigElementOne : ContainerConfiguringElement
- {
- public static bool ConfigureWasCalled = false;
-
- ///
- /// Apply this element's configuration to the given .
- ///
- /// Container to configure.
- protected override void ConfigureContainer(IUnityContainer container)
- {
- ConfigureWasCalled = true;
- }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/ContainerConfigElementTwo.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/ContainerConfigElementTwo.cs
deleted file mode 100644
index 559c9d18..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/ContainerConfigElementTwo.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects
-{
- internal class ContainerConfigElementTwo : ContainerConfiguringElement
- {
- public static bool ConfigureWasCalled;
-
- ///
- /// Apply this element's configuration to the given .
- ///
- /// Container to configure.
- protected override void ConfigureContainer(IUnityContainer container)
- {
- ConfigureWasCalled = true;
- }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/GenericArrayPropertyDependency.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/GenericArrayPropertyDependency.cs
deleted file mode 100644
index e6a54b4f..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/GenericArrayPropertyDependency.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects
-{
- internal class GenericArrayPropertyDependency
- {
- public T[] Stuff { get; set; }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/GenericObjectWithConstructorDependency.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/GenericObjectWithConstructorDependency.cs
deleted file mode 100644
index c4baf790..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/GenericObjectWithConstructorDependency.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects
-{
- internal class GenericObjectWithConstructorDependency
- {
- public T Value { get; private set; }
-
- public GenericObjectWithConstructorDependency(T value)
- {
- Value = value;
- }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/GenericObjectWithNestedDependency.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/GenericObjectWithNestedDependency.cs
deleted file mode 100644
index ca68ca8c..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/GenericObjectWithNestedDependency.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects
-{
- internal class GenericObjectWithNestedDependency
- {
- public GenericObjectWithConstructorDependency Value { get; private set; }
-
- public GenericObjectWithNestedDependency(GenericObjectWithConstructorDependency value)
- {
- Value = value;
- }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/CompactCarItem.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/CompactCarItem.cs
deleted file mode 100644
index cb3e0010..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/CompactCarItem.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects.MyGenericTypes
-{
- internal class CompactCarItem : IItem
- {
- public CompactCarItem(string name, int numberDoors)
- {
- this.ItemName = name;
- this.NumberOfDoors = numberDoors;
- }
-
- #region IItem Members
-
- public string ItemName { get; set; }
-
- public string ItemType
- {
- get { return "Compact Car"; }
- }
-
- public ItemCategory Category
- {
- get { return ItemCategory.Car; }
- }
-
- #endregion
-
- public int NumberOfDoors { get; set; }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/DiggerItem.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/DiggerItem.cs
deleted file mode 100644
index 30c3ab23..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/DiggerItem.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects.MyGenericTypes
-{
- internal class DiggerItem : IItem
- {
- public DiggerItem(string name, int bucketWidth)
- {
- this.ItemName = name;
- this.BucketWidthInches = bucketWidth;
- }
-
- #region IItem Members
-
- public string ItemName { get; set; }
-
- public string ItemType
- {
- get { return "Digger"; }
- }
-
- public ItemCategory Category
- {
- get { return ItemCategory.Construction; }
- }
-
- #endregion
-
- public int BucketWidthInches { get; set; }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/IGenericService.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/IGenericService.cs
deleted file mode 100644
index bceb329e..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/IGenericService.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects.MyGenericTypes
-{
- public interface IGenericService
- {
- string ServiceStatus { get; }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/IItem.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/IItem.cs
deleted file mode 100644
index 35d458d0..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/IItem.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects.MyGenericTypes
-{
- public interface IItem
- {
- string ItemName { get; set; }
- string ItemType { get; }
- ItemCategory Category { get; }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/ItemCategory.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/ItemCategory.cs
deleted file mode 100644
index be894186..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/ItemCategory.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects.MyGenericTypes
-{
- public enum ItemCategory
- {
- Car,
- Van,
- Truck,
- Construction,
- Agricultural,
- Other
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/ItemsCollection.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/ItemsCollection.cs
deleted file mode 100644
index b26348ee..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/ItemsCollection.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects.MyGenericTypes
-{
- public class ItemsCollection
- {
- public IGenericService Printer;
- public string CollectionName;
-
- public ItemsCollection(String name, IGenericService printService)
- {
- CollectionName = name;
- Printer = printService;
- }
-
- public ItemsCollection(String name, IGenericService printService, T[] items)
- : this(name, printService)
- {
- this.Items = items;
- }
-
- public ItemsCollection(String name, IGenericService printService, T[][] itemsArray)
- : this(name, printService, itemsArray.Length > 0 ? itemsArray[0] : null)
- { }
-
- public T[] Items { get; set; }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/LargeTruckItem.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/LargeTruckItem.cs
deleted file mode 100644
index ef339976..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/LargeTruckItem.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects.MyGenericTypes
-{
- internal class LargeTruckItem : IItem
- {
- public LargeTruckItem(string name, int numberWheels)
- {
- this.ItemName = name;
- this.NumberOfWheels = numberWheels;
- }
-
- #region IItem Members
-
- public string ItemName { get; set; }
-
- public string ItemType
- {
- get { return "Large Truck"; }
- }
-
- public ItemCategory Category
- {
- get { return ItemCategory.Truck; }
- }
-
- #endregion
-
- public int NumberOfWheels { get; set; }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/MidsizeCarItem.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/MidsizeCarItem.cs
deleted file mode 100644
index 2fc98d14..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/MidsizeCarItem.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects.MyGenericTypes
-{
- internal class MidsizeCarItem : IItem
- {
- public MidsizeCarItem(string name, int numberCupHolders)
- {
- this.ItemName = name;
- this.NumberOfCupHolders = numberCupHolders;
- }
-
- #region IItem Members
-
- public string ItemName { get; set; }
-
- public string ItemType
- {
- get { return "Midsize Car"; }
- }
-
- public ItemCategory Category
- {
- get { return ItemCategory.Car; }
- }
-
- #endregion
-
- public int NumberOfCupHolders { get; set; }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/MidsizeVanItem.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/MidsizeVanItem.cs
deleted file mode 100644
index 24e41962..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/MidsizeVanItem.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects.MyGenericTypes
-{
- internal class MidsizeVanItem : IItem
- {
- public MidsizeVanItem(string name, int maxCapacity)
- {
- this.ItemName = name;
- this.MaxCapacityCubicFeet = maxCapacity;
- }
-
- #region IItem Members
-
- public string ItemName { get; set; }
-
- public string ItemType
- {
- get { return "Midsize Van"; }
- }
-
- public ItemCategory Category
- {
- get { return ItemCategory.Van; }
- }
-
- #endregion
-
- public int MaxCapacityCubicFeet { get; set; }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/MyPrintService.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/MyPrintService.cs
deleted file mode 100644
index b20da90e..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/MyPrintService.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects.MyGenericTypes
-{
- public class MyPrintService : IGenericService
- {
- #region IMyService Members
-
- public string ServiceStatus
- {
- get { return String.Format("Available for type: {0}", typeof(T)); }
- }
-
- #endregion
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/PickupTruckItem.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/PickupTruckItem.cs
deleted file mode 100644
index 45c0ab65..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/PickupTruckItem.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects.MyGenericTypes
-{
- internal class PickupTruckItem : IItem
- {
- public PickupTruckItem(string name, int maxLoad)
- {
- this.ItemName = name;
- this.MaxLoadPounds = maxLoad;
- }
-
- #region IItem Members
-
- public string ItemName { get; set; }
-
- public string ItemType
- {
- get { return "Pickup Truck"; }
- }
-
- public ItemCategory Category
- {
- get { return ItemCategory.Truck; }
- }
-
- #endregion
-
- public int MaxLoadPounds { get; set; }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/TractorItem.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/TractorItem.cs
deleted file mode 100644
index 141596fd..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/MyGenericTypes/TractorItem.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects.MyGenericTypes
-{
- internal class TractorItem : IItem
- {
- public TractorItem(string name, int maxTrailerTons)
- {
- this.ItemName = name;
- this.MaxTrailerWeightTons = maxTrailerTons;
- }
-
- #region IItem Members
-
- public string ItemName { get; set; }
-
- public string ItemType
- {
- get { return "Tractor"; }
- }
-
- public ItemCategory Category
- {
- get { return ItemCategory.Agricultural; }
- }
-
- #endregion
-
- public int MaxTrailerWeightTons { get; set; }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/ObjectTakingScalars.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/ObjectTakingScalars.cs
deleted file mode 100644
index 3d0c8421..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/ObjectTakingScalars.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects
-{
- internal class ObjectTakingScalars
- {
- public ObjectTakingScalars(int intValue)
- {
- this.IntValue = intValue;
- }
-
- internal int IntValue { get; set; }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/ObjectWithOverloads.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/ObjectWithOverloads.cs
deleted file mode 100644
index 3705d115..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/ObjectWithOverloads.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects
-{
- internal class ObjectWithOverloads
- {
- public int FirstOverloadCalls;
- public int SecondOverloadCalls;
-
- public void CallMe(int param)
- {
- ++FirstOverloadCalls;
- }
-
- public void CallMe(string param)
- {
- ++SecondOverloadCalls;
- }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/SeventeenValueElement.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/SeventeenValueElement.cs
deleted file mode 100644
index fc262112..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/SeventeenValueElement.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects
-{
- internal class SeventeenValueElement : ParameterValueElement
- {
- ///
- /// Generate an object
- /// that will be used to configure the container for a type registration.
- ///
- /// Container that is being configured. Supplied in order
- /// to let custom implementations retrieve services; do not configure the container
- /// directly in this method.
- /// Type of the
- ///
- public override InjectionParameterValue GetInjectionParameterValue(IUnityContainer container, Type parameterType)
- {
- return new InjectionParameter(17);
- }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/TestInjectionMemberElement.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/TestInjectionMemberElement.cs
deleted file mode 100644
index b4e4029b..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/TestInjectionMemberElement.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects
-{
- public class TestInjectionMemberElement : InjectionMemberElement
- {
- private static int numElements = 0;
- private readonly int index;
-
- public TestInjectionMemberElement()
- {
- this.index = Interlocked.Increment(ref numElements);
- }
-
- ///
- /// Each element must have a unique key, which is generated by the subclasses.
- ///
- public override string Key
- {
- get { return "TestInjectionMemberElement: " + this.index.ToString(); }
- }
-
- ///
- /// Return the set of s that are needed
- /// to configure the container according to this configuration element.
- ///
- /// Container that is being configured.
- /// Type that is being registered.
- /// Type that is being mapped to.
- /// Name this registration is under.
- /// One or more objects that should be
- /// applied to the container registration.
- public override IEnumerable GetInjectionMembers(IUnityContainer container, Type fromType, Type toType, string name)
- {
- return Enumerable.Empty();
- }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/TestSectionExtension.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/TestSectionExtension.cs
deleted file mode 100644
index 4b37a795..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/TestObjects/TestSectionExtension.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-namespace Microsoft.Practices.Unity.Configuration.Tests.TestObjects
-{
- internal class TestSectionExtension : SectionExtension
- {
- public static int NumberOfCalls;
-
- public TestSectionExtension()
- {
- NumberOfCalls = 0;
- }
-
- ///
- /// Add the extensions to the section via the context.
- ///
- /// Context object that can be used to add elements and aliases.
- public override void AddExtensions(SectionExtensionContext context)
- {
- ++NumberOfCalls;
-
- context.AddAlias("scalarObject");
- context.AddElement("configOne");
- context.AddElement("configTwo");
- context.AddElement("testInjectionMember");
- context.AddElement("seventeen");
- }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/Unity.Configuration.Tests.csproj b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/Unity.Configuration.Tests.csproj
deleted file mode 100644
index 432297a3..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/Unity.Configuration.Tests.csproj
+++ /dev/null
@@ -1,243 +0,0 @@
-
-
-
- Debug
- AnyCPU
- 9.0.30729
- 2.0
- {190A49C4-CE38-4E32-ACD6-4A0B3F92DB03}
- Library
- Properties
- Microsoft.Practices.Unity.Configuration.Tests
- Unity.Configuration.Tests
- v4.5
- 512
- {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
-
-
-
-
- 3.5
- publish\
- true
- Disk
- false
- Foreground
- 7
- Days
- false
- false
- true
- 0
- 1.0.0.%2a
- false
- false
- true
-
-
-
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
- ..\..\..\Tests.ruleset
- false
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
- ..\..\..\Tests.ruleset
- false
-
-
-
-
-
-
- 3.5
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {EE1F752C-1FAB-41AD-AD63-857D0E62AB6B}
- Unity
-
-
- {e979857e-cde5-4d36-9ae8-8fff4f75ae89}
- Unity.TestSupport
-
-
- {AEF45ED2-3E7F-4AA5-9001-A4D1BAC12EBE}
- Unity.Configuration
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- False
- Microsoft .NET Framework 4 %28x86 and x64%29
- true
-
-
- False
- .NET Framework 3.5 SP1 Client Profile
- false
-
-
- False
- .NET Framework 3.5 SP1
- false
-
-
- False
- Windows Installer 3.1
- true
-
-
-
-
- Unity.licenseheader
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/When_ConfigurationContainerForMethodInjection.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/When_ConfigurationContainerForMethodInjection.cs
deleted file mode 100644
index ad24caf1..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/When_ConfigurationContainerForMethodInjection.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using Microsoft.Practices.Unity.Configuration.Tests.ConfigFiles;
-using Microsoft.Practices.Unity.Configuration.Tests.TestObjects;
-using Microsoft.Practices.Unity.TestSupport;
-using Microsoft.Practices.Unity.TestSupport.Configuration;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests
-{
- ///
- /// Summary description for When_ConfigurationContainerForMethodInjection
- ///
- [TestClass]
- public class When_ConfigurationContainerForMethodInjection : ContainerConfiguringFixture
- {
- public When_ConfigurationContainerForMethodInjection()
- : base("MethodInjection", String.Empty)
- {
- }
-
- [TestMethod]
- public void Then_SingleInjectionMethodIsCalledWithExpectedValues()
- {
- var result = Container.Resolve("singleMethod");
-
- Assert.AreEqual("northwind", result.ConnectionString);
- Assert.IsInstanceOfType(result.Logger, typeof(MockLogger));
- }
-
- [TestMethod]
- public void Then_MultipleInjectionMethodsCalledWithExpectedValues()
- {
- var result = Container.Resolve("twoMethods");
-
- Assert.AreEqual("northwind", result.ConnectionString);
- Assert.IsInstanceOfType(result.Logger, typeof(MockLogger));
- Assert.IsNotNull(result.MoreData);
- }
-
- [TestMethod]
- public void Then_CorrectFirstOverloadIsCalled()
- {
- var result = Container.Resolve("callFirstOverload");
-
- Assert.AreEqual(1, result.FirstOverloadCalls);
- Assert.AreEqual(0, result.SecondOverloadCalls);
- }
-
- [TestMethod]
- public void Then_CorrectSecondOverloadIsCalled()
- {
- var result = Container.Resolve("callSecondOverload");
-
- Assert.AreEqual(0, result.FirstOverloadCalls);
- Assert.AreEqual(1, result.SecondOverloadCalls);
- }
-
- [TestMethod]
- public void Then_BothOverloadsAreCalled()
- {
- var result = Container.Resolve("callBothOverloads");
-
- Assert.AreEqual(1, result.FirstOverloadCalls);
- Assert.AreEqual(1, result.SecondOverloadCalls);
- }
-
- [TestMethod]
- public void Then_FirstOverloadIsCalledTwice()
- {
- var result = Container.Resolve("callFirstOverloadTwice");
-
- Assert.AreEqual(2, result.FirstOverloadCalls);
- Assert.AreEqual(0, result.SecondOverloadCalls);
- }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/When_ConfiguringContainerForArrayInjection.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/When_ConfiguringContainerForArrayInjection.cs
deleted file mode 100644
index 58b26de3..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/When_ConfiguringContainerForArrayInjection.cs
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using System.Linq;
-using Microsoft.Practices.Unity.Configuration.Tests.ConfigFiles;
-using Microsoft.Practices.Unity.Configuration.Tests.TestObjects;
-using Microsoft.Practices.Unity.TestSupport;
-using Microsoft.Practices.Unity.TestSupport.Configuration;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests
-{
- ///
- /// Summary description for When_ConfiguringContainerForArrayInjection
- ///
- [TestClass]
- public class When_ConfiguringContainerForArrayInjection : ContainerConfiguringFixture
- {
- public When_ConfiguringContainerForArrayInjection()
- : base("ArrayInjection", String.Empty)
- {
- }
-
- [TestMethod]
- public void Then_DefaultResolutionReturnsAllRegisteredLoggers()
- {
- var result = Container.Resolve("defaultInjection");
-
- result.Loggers.Select(l => l.GetType()).AssertContainsInAnyOrder(
- typeof(SpecialLogger), typeof(MockLogger), typeof(MockLogger));
- }
-
- [TestMethod]
- public void Then_SpecificElementsAreInjected()
- {
- var result = Container.Resolve("specificElements");
-
- result.Loggers.Select(l => l.GetType()).AssertContainsInAnyOrder(
- typeof(SpecialLogger), typeof(MockLogger));
- }
-
- [TestMethod]
- public void Then_CanMixResolutionAndValuesInAnArray()
- {
- var result = Container.Resolve("mixingResolvesAndValues");
-
- result.Strings.AssertContainsExactly("first", "Not the second", "third");
- }
-
- [TestMethod]
- public void Then_CanConfigureZeroLengthArrayForInjection()
- {
- var result = Container.Resolve("zeroLengthArray");
-
- Assert.IsNotNull(result.Strings);
- Assert.AreEqual(0, result.Strings.Length);
- }
-
- [TestMethod]
- public void Then_GenericArrayPropertiesAreInjected()
- {
- var result = Container.Resolve>("defaultResolution");
-
- result.Stuff.AssertContainsInAnyOrder("first", "second", "third");
- }
-
- [TestMethod]
- public void Then_CanConfigureZeroLengthGenericArrayToBeInjected()
- {
- var result = Container.Resolve>("explicitZeroLengthArray");
-
- Assert.AreEqual(0, result.Stuff.Count());
- }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/When_ConfiguringContainerForGenericAndNonGenericTypes.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/When_ConfiguringContainerForGenericAndNonGenericTypes.cs
deleted file mode 100644
index c68dab08..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/When_ConfiguringContainerForGenericAndNonGenericTypes.cs
+++ /dev/null
@@ -1,266 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using Microsoft.Practices.Unity.Configuration.Tests.ConfigFiles;
-using Microsoft.Practices.Unity.Configuration.Tests.TestObjects.MyGenericTypes;
-using Microsoft.Practices.Unity.TestSupport.Configuration;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests
-{
- ///
- /// Summary description for When_ConfiguringContainerForGenericAndNonGenericTypes
- ///
- [TestClass]
- public class When_ConfiguringContainerForGenericAndNonGenericTypes : ContainerConfiguringFixture
- {
- public When_ConfiguringContainerForGenericAndNonGenericTypes()
- : base("Generics", "container1")
- {
- }
-
- [TestMethod]
- public void Then_CanResolveConfiguredGenericType()
- {
- var result = Container.Resolve>();
-
- Assert.AreEqual(8, result.Items.Length);
- Assert.IsInstanceOfType(result.Printer, typeof(MyPrintService));
- }
-
- [TestMethod]
- public void Then_CanResolveConfiguredGenericTypeWithSpecificElements()
- {
- var result = Container.Resolve>("OnlyThree");
- Assert.AreEqual(3, result.Items.Length);
- }
-
- [TestMethod]
- public void Then_CanConfigureGenericArrayInjectionViaAPI()
- {
- Container.RegisterType(typeof(ItemsCollection<>), "More",
- new InjectionConstructor("MyGenericCollection", new ResolvedParameter(typeof(IGenericService<>))),
- new InjectionProperty("Items",
- new GenericResolvedArrayParameter("T",
- new GenericParameter("T", "Xray"),
- new GenericParameter("T", "Common"),
- new GenericParameter("T", "Tractor"))));
-
- var result = Container.Resolve>("More");
- Assert.AreEqual(3, result.Items.Length);
- }
-
- [TestMethod]
- public void Then_CanResolveConfiguredResolvableOptionalGenericType()
- {
- var result = Container.Resolve>("optional resolvable");
-
- Assert.AreEqual(1, result.Items.Length);
- Assert.IsNotNull(result.Items[0]);
- Assert.AreEqual("Charlie Miniature", result.Items[0].ItemName);
- }
-
- [TestMethod]
- public void Then_CanResolveConfiguredNonResolvableOptionalGenericType()
- {
- var result = Container.Resolve>("optional non resolvable");
-
- Assert.AreEqual(1, result.Items.Length);
- Assert.IsNull(result.Items[0]);
- }
-
- [TestMethod]
- public void Then_CanResolveConfiguredGenericTypeWithArrayInjectedInConstructor()
- {
- var result = Container.Resolve>("ThroughConstructor");
-
- Assert.AreEqual(8, result.Items.Length);
- Assert.IsInstanceOfType(result.Printer, typeof(MyPrintService));
- }
-
- [TestMethod]
- public void Then_CanResolveConfiguredGenericTypeWithArrayInjectedInConstructorWithSpecificElements()
- {
- var result = Container.Resolve>("ThroughConstructorWithSpecificElements");
-
- Assert.AreEqual(3, result.Items.Length);
- }
-
- // [TestMethod]
- // nested arrays with generics not supported by container
- public void Then_CanResolveConfiguredGenericTypeWithArrayOfArraysInjectedInConstructorWithSpecificElements()
- {
- var result = Container.Resolve>("ArrayOfArraysThroughConstructorWithSpecificElements");
-
- Assert.AreEqual(3, result.Items.Length);
- }
- }
-
- [TestClass]
- public class When_ConfiguringContainerWithDependencyElementForGenericPropertyArrayWithTypeSet : ContainerConfiguringFixture
- {
- private InvalidOperationException exception;
-
- public When_ConfiguringContainerWithDependencyElementForGenericPropertyArrayWithTypeSet()
- : base("Generics", "dependency with type")
- { }
-
- protected override void Act()
- {
- try
- {
- base.Act();
- }
- catch (InvalidOperationException ex)
- {
- this.exception = ex;
- }
- }
-
- [TestMethod]
- public void ThenContainerSetupThrows()
- {
- Assert.IsNotNull(this.exception);
- }
- }
-
- [TestClass]
- public class When_ConfiguringContainerWithParameterWithValueElement : ContainerConfiguringFixture
- {
- private InvalidOperationException exception;
-
- public When_ConfiguringContainerWithParameterWithValueElement()
- : base("Generics", "property with value")
- { }
-
- protected override void Act()
- {
- try
- {
- base.Act();
- }
- catch (InvalidOperationException ex)
- {
- this.exception = ex;
- }
- }
-
- [TestMethod]
- public void ThenContainerSetupThrows()
- {
- Assert.IsNotNull(this.exception);
- }
- }
-
- [TestClass]
- public class When_ConfiguringContainerWithGenericArrayPropertyWithValueElement : ContainerConfiguringFixture
- {
- private InvalidOperationException exception;
-
- public When_ConfiguringContainerWithGenericArrayPropertyWithValueElement()
- : base("Generics", "generic array property with value")
- { }
-
- protected override void Act()
- {
- try
- {
- base.Act();
- }
- catch (InvalidOperationException ex)
- {
- this.exception = ex;
- }
- }
-
- [TestMethod]
- public void ThenContainerSetupThrows()
- {
- Assert.IsNotNull(this.exception);
- }
- }
-
- [TestClass]
- public class When_ConfiguringContainerWithChainedGenericParameterWithValueElement : ContainerConfiguringFixture
- {
- private InvalidOperationException exception;
-
- public When_ConfiguringContainerWithChainedGenericParameterWithValueElement()
- : base("Generics", "chained generic parameter with value")
- { }
-
- protected override void Act()
- {
- try
- {
- base.Act();
- }
- catch (InvalidOperationException ex)
- {
- this.exception = ex;
- }
- }
-
- [TestMethod]
- public void ThenContainerSetupThrows()
- {
- Assert.IsNotNull(this.exception);
- }
- }
-
- [TestClass]
- public class When_ConfiguringContainerWithDependencyElementForArrayWithTypeSet : ContainerConfiguringFixture
- {
- private InvalidOperationException exception;
-
- public When_ConfiguringContainerWithDependencyElementForArrayWithTypeSet()
- : base("Generics", "generic array property with dependency with type")
- { }
-
- protected override void Act()
- {
- try
- {
- base.Act();
- }
- catch (InvalidOperationException ex)
- {
- this.exception = ex;
- }
- }
-
- [TestMethod]
- public void ThenContainerSetupThrows()
- {
- Assert.IsNotNull(this.exception);
- }
- }
-
- [TestClass]
- public class When_ConfiguringContainerWithArrayElementForChainedGenericParameter : ContainerConfiguringFixture
- {
- private InvalidOperationException exception;
-
- public When_ConfiguringContainerWithArrayElementForChainedGenericParameter()
- : base("Generics", "chained generic parameter with array")
- { }
-
- protected override void Act()
- {
- try
- {
- base.Act();
- }
- catch (InvalidOperationException ex)
- {
- this.exception = ex;
- }
- }
-
- [TestMethod]
- public void ThenContainerSetupThrows()
- {
- Assert.IsNotNull(this.exception);
- }
- }
-}
diff --git a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/When_ConfiguringContainerForPropertyInjection.cs b/source/Unity.Configuration/Tests/Unity.Configuration.Tests/When_ConfiguringContainerForPropertyInjection.cs
deleted file mode 100644
index 492ed93f..00000000
--- a/source/Unity.Configuration/Tests/Unity.Configuration.Tests/When_ConfiguringContainerForPropertyInjection.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
-
-using System;
-using Microsoft.Practices.Unity.Configuration.Tests.ConfigFiles;
-using Microsoft.Practices.Unity.TestSupport;
-using Microsoft.Practices.Unity.TestSupport.Configuration;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-
-namespace Microsoft.Practices.Unity.Configuration.Tests
-{
- ///
- /// Summary description for When_ConfiguringContainerForPropertyInjection
- ///
- [TestClass]
- public class When_ConfiguringContainerForPropertyInjection : ContainerConfiguringFixture
- {
- public When_ConfiguringContainerForPropertyInjection()
- : base("InjectingProperties", String.Empty)
- {
- }
-
- [TestMethod]
- public void Then_InjectedPropertyIsResolvedAccordingToConfiguration()
- {
- var expected = Container.Resolve