@@ -131,19 +131,19 @@ private static TPolicy FindInterceptionPolicy<TPolicy>(IBuilderContext context)
131131
132132 #region IRegisterTypeStrategy
133133
134- public void RegisterType ( IContainerContext context , Type typeFrom , Type typeTo , string name ,
135- LifetimeManager lifetimeManager , params InjectionMember [ ] injectionMembers )
136- {
137- Type typeToBuild = typeFrom ?? typeTo ;
138-
139- var policy = ( ITypeInterceptionPolicy ) ( context . Policies . Get ( typeToBuild , name , typeof ( ITypeInterceptionPolicy ) , out _ ) ??
140- context . Policies . Get ( typeToBuild , string . Empty , typeof ( ITypeInterceptionPolicy ) , out _ ) ) ;
141- if ( policy == null ) return ;
142-
143- var interceptor = policy . GetInterceptor ( context . Container ) ;
144- if ( typeof ( VirtualMethodInterceptor ) == interceptor ? . GetType ( ) )
145- context . Policies . Set ( typeToBuild , name , typeof ( IBuildPlanPolicy ) , new OverriddenBuildPlanMarkerPolicy ( ) ) ;
146- }
134+ // public void RegisterType(IContainerContext context, Type typeFrom, Type typeTo, string name,
135+ // LifetimeManager lifetimeManager, params InjectionMember[] injectionMembers)
136+ // {
137+ // Type typeToBuild = typeFrom ?? typeTo;
138+
139+ // var policy = (ITypeInterceptionPolicy)(context.Policies.Get(typeToBuild, name, typeof(ITypeInterceptionPolicy), out _) ??
140+ // context.Policies.Get(typeToBuild, string.Empty, typeof(ITypeInterceptionPolicy), out _));
141+ // if (policy == null) return;
142+
143+ // var interceptor = policy.GetInterceptor(context.Container);
144+ // if (typeof(VirtualMethodInterceptor) == interceptor?.GetType())
145+ // context.Policies.Set(typeToBuild, name, typeof(IBuildPlanPolicy), new OverriddenBuildPlanMarkerPolicy());
146+ // }
147147
148148 #endregion
149149
0 commit comments