Updating to the latest
This commit is contained in:
Родитель
d2a7b62097
Коммит
8ac72192e0
|
@ -1 +1 @@
|
|||
Subproject commit 0a112b1909abdf0c2591fafcecfcddce61313ba7
|
||||
Subproject commit 7a870102bbc75751981b2c06ac08b7cd10eba5e4
|
|
@ -1 +1 @@
|
|||
Subproject commit 3d47862b273447f0d9944b9639986a28da2ccc7d
|
||||
Subproject commit b7d7b939d06c177c93af13b01b2b09b6985cca2e
|
|
@ -1,8 +1,6 @@
|
|||
using System;
|
||||
using Benchmark.Abstractions;
|
||||
using Benchmark.Abstractions;
|
||||
using System;
|
||||
using Unity.Lifetime;
|
||||
using Unity.Registration;
|
||||
using Unity.Resolution;
|
||||
|
||||
namespace Unity.V5.Adapter
|
||||
{
|
||||
|
@ -15,32 +13,32 @@ namespace Unity.V5.Adapter
|
|||
|
||||
public override object Singleton()
|
||||
{
|
||||
return ((UnityContainer)Container).Resolve(typeof(IUnityContainer), null, new ResolverOverride[0]);
|
||||
return ((IUnityContainer)Container).Resolve(typeof(IUnityContainer), null);
|
||||
}
|
||||
|
||||
public override object Resolve(Type type, string name)
|
||||
{
|
||||
return ((UnityContainer)Container).Resolve(type, name, new ResolverOverride[0]);
|
||||
return ((IUnityContainer)Container).Resolve(type, name);
|
||||
}
|
||||
|
||||
public override object RegisterType(Type type, string name)
|
||||
{
|
||||
return ((UnityContainer)Container).RegisterType(null, type, name, null, new InjectionMember[0]);
|
||||
return ((IUnityContainer)Container).RegisterType(null, type, name, null);
|
||||
}
|
||||
|
||||
public override object RegisterTypeSingleton(Type type, string name)
|
||||
{
|
||||
return ((UnityContainer)Container).RegisterType(null, type, name, new ContainerControlledLifetimeManager(), new InjectionMember[0]);
|
||||
return ((IUnityContainer)Container).RegisterType(null, type, name, new ContainerControlledLifetimeManager());
|
||||
}
|
||||
|
||||
public override object RegisterTypeMapping(Type from, Type to, string name)
|
||||
{
|
||||
return ((UnityContainer)Container).RegisterType(from, to, name, null, new InjectionMember[0]);
|
||||
return ((IUnityContainer)Container).RegisterType(from, to, name, null);
|
||||
}
|
||||
|
||||
public override object RegisterTypeMappingSingleton(Type from, Type to, string name)
|
||||
{
|
||||
return ((UnityContainer)Container).RegisterType(from, to, name, new ContainerControlledLifetimeManager(), new InjectionMember[0]);
|
||||
return ((IUnityContainer)Container).RegisterType(from, to, name, new ContainerControlledLifetimeManager());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Unity" Version="5.8.13" />
|
||||
<PackageReference Include="Unity" Version="5.11.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
using Benchmark.Abstractions;
|
||||
using System;
|
||||
using Unity.Lifetime;
|
||||
|
||||
namespace Unity.V6.Adapter
|
||||
{
|
||||
|
@ -12,7 +13,7 @@ namespace Unity.V6.Adapter
|
|||
|
||||
public override object Singleton()
|
||||
{
|
||||
return ((UnityContainer)Container).Resolve(typeof(IUnityContainer), null, null);
|
||||
return ((IUnityContainer)Container).Resolve(typeof(IUnityContainer), null);
|
||||
}
|
||||
|
||||
public override object Resolve(Type type, string name)
|
||||
|
|
Загрузка…
Ссылка в новой задаче