diff --git a/src/Policy/IBuildKeyMappingPolicy.cs b/src/Policy/IBuildKeyMappingPolicy.cs
deleted file mode 100644
index 3e8b3d3c..00000000
--- a/src/Policy/IBuildKeyMappingPolicy.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-using System;
-using Unity.Builder;
-
-namespace Unity.Policy
-{
- ///
- /// Represents a builder policy for mapping build keys.
- ///
- public interface IBuildKeyMappingPolicy
- {
- ///
- /// Maps the build key.
- ///
- /// Current build context. Used for contextual information
- /// if writing a more sophisticated mapping. This parameter can be null
- /// (called when getting container registrations).
- /// The new build key.
- Type Map(ref BuilderContext context);
-
- ///
- /// Instructs engine to resolve type rather than build it
- ///
- bool RequireBuild { get; }
- }
-}
diff --git a/src/Unity.Container.csproj b/src/Unity.Container.csproj
index 38a89035..6fcc464b 100644
--- a/src/Unity.Container.csproj
+++ b/src/Unity.Container.csproj
@@ -71,9 +71,4 @@
-
-
-
-
-
diff --git a/src/UnityContainer.IUnityContainer.cs b/src/UnityContainer.IUnityContainer.cs
index c798686b..37ee7b32 100644
--- a/src/UnityContainer.IUnityContainer.cs
+++ b/src/UnityContainer.IUnityContainer.cs
@@ -87,6 +87,14 @@ namespace Unity
return this;
}
+ ///
+ IUnityContainer IUnityContainer.RegisterType(IEnumerable interfaces, Type implementationType, string name,
+ LifetimeManager lifetimeManager, params InjectionMember[] injectionMembers)
+ {
+ throw new NotImplementedException();
+ }
+
+
#endregion
diff --git a/tests/Performance/Performance.csproj b/tests/Performance/Performance.csproj
index 1324df4f..1379be17 100644
--- a/tests/Performance/Performance.csproj
+++ b/tests/Performance/Performance.csproj
@@ -3,6 +3,9 @@
Exe
net461
+ true
+ ..\..\src\package.snk
+ false
diff --git a/tests/Performance/Tests/Compiled.cs b/tests/Performance/Tests/Compiled.cs
index 97c68ccf..3484b8a3 100644
--- a/tests/Performance/Tests/Compiled.cs
+++ b/tests/Performance/Tests/Compiled.cs
@@ -2,6 +2,7 @@
using Runner.Setup;
using System.Collections.Generic;
using Unity;
+using Unity.Builder;
namespace Runner.Tests
{
@@ -15,16 +16,17 @@ namespace Runner.Tests
[IterationSetup]
public virtual void SetupContainer()
{
- _container = new UnityContainer(UnityContainer.BuildStrategy.Compiled);
+ _container = new UnityContainer(Unity.UnityContainer.BuildStrategy.Compiled);
_container.RegisterType();
_container.RegisterType();
_container.RegisterType("1");
_container.RegisterType("2", Invoke.Factory(c => new Foo()));
+ _container.RegisterType("3", Invoke.Factory((ref BuilderContext c) => new Foo()));
}
[Benchmark(Description = "Resolve ")]
- public object IUnityContainer() => _container.Resolve(typeof(IUnityContainer), null);
+ public object UnityContainer() => _container.Resolve(typeof(IUnityContainer), null);
[Benchmark(Description = "Compiled