Removing Selected constructor
This commit is contained in:
Родитель
328afb0243
Коммит
64f5cc231c
|
@ -75,10 +75,7 @@ namespace Unity.Interception.ContainerIntegration.ObjectBuilder
|
|||
Type[] allAdditionalInterfaces =
|
||||
Intercept.GetAllAdditionalInterfaces(enumerable, additionalInterfaces);
|
||||
|
||||
Type interceptingType =
|
||||
interceptor.CreateProxyType(typeToBuild, allAdditionalInterfaces);
|
||||
|
||||
DerivedTypeConstructorSelectorPolicy.SetPolicyForInterceptingType(ref context, interceptingType);
|
||||
context.Type = interceptor.CreateProxyType(typeToBuild, allAdditionalInterfaces);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -200,7 +200,7 @@ namespace Microsoft.Practices.Unity.InterceptionExtension.Tests.VirtualMethodInt
|
|||
new Interceptor<VirtualMethodInterceptor>(),
|
||||
new InterceptionBehavior(callCountBehavior));
|
||||
|
||||
ClassWithSingleNonDefaultConstructor instance = container.Resolve<ClassWithSingleNonDefaultConstructor>();
|
||||
var instance = container.Resolve<ClassWithSingleNonDefaultConstructor>();
|
||||
|
||||
string value = instance.GetValue();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче