@@ -29,25 +29,25 @@ public class TypeInterceptionStrategy : BuilderStrategy
2929 /// <remarks>In this class, PreBuildUp is responsible for figuring out if the
3030 /// class is proxyable, and if so, replacing it with a proxy class.</remarks>
3131 /// <param name="context">Context of the build operation.</param>
32- public override void PreBuildUp ( IBuilderContext context )
32+ public override object PreBuildUp ( IBuilderContext context )
3333 {
3434 if ( ( context ?? throw new ArgumentNullException ( nameof ( context ) ) ) . Existing != null )
3535 {
36- return ;
36+ return null ;
3737 }
3838
3939 Type typeToBuild = context . BuildKey . Type ;
4040
4141 var interceptionPolicy = FindInterceptionPolicy < ITypeInterceptionPolicy > ( context ) ;
4242 if ( interceptionPolicy == null )
4343 {
44- return ;
44+ return null ;
4545 }
4646
4747 var interceptor = interceptionPolicy . GetInterceptor ( context ) ;
4848 if ( ! interceptor . CanIntercept ( typeToBuild ) )
4949 {
50- return ;
50+ return null ;
5151 }
5252
5353 var interceptionBehaviorsPolicy = FindInterceptionPolicy < IInterceptionBehaviorsPolicy > ( context ) ;
@@ -80,6 +80,8 @@ public override void PreBuildUp(IBuilderContext context)
8080 interceptor . CreateProxyType ( typeToBuild , allAdditionalInterfaces ) ;
8181
8282 DerivedTypeConstructorSelectorPolicy . SetPolicyForInterceptingType ( context , interceptingType ) ;
83+
84+ return null ;
8385 }
8486
8587 /// <summary>
@@ -90,7 +92,8 @@ public override void PreBuildUp(IBuilderContext context)
9092 /// <remarks>In this class, PostBuildUp checks to see if the object was proxyable,
9193 /// and if it was, wires up the handlers.</remarks>
9294 /// <param name="context">Context of the build operation.</param>
93- public override void PostBuildUp ( IBuilderContext context )
95+ /// <param name="pre"></param>
96+ public override void PostBuildUp ( IBuilderContext context , object pre = null )
9497 {
9598 IInterceptingProxy proxy =
9699 ( context ?? throw new ArgumentNullException ( nameof ( context ) ) ) . Existing as IInterceptingProxy ;
@@ -163,7 +166,7 @@ private static SelectedConstructor FindNewConstructor(SelectedConstructor origin
163166
164167 SelectedConstructor newConstructor = new SelectedConstructor ( newConstructorInfo ) ;
165168
166- foreach ( IDependencyResolverPolicy resolver in originalConstructor . GetParameterResolvers ( ) )
169+ foreach ( IResolverPolicy resolver in originalConstructor . GetParameterResolvers ( ) )
167170 {
168171 newConstructor . AddParameterResolver ( resolver ) ;
169172 }
0 commit comments