views:

35

answers:

1

I have a ILazyComponentLoader that registers any type on demand. My container also has an IModelInterceptorsSelector. When I resolve an unknown type, the ILazyComponentLoader is invoked correctly and then the IModelInterceptorsSelector is also invoked and returns the correct interceptors, but the resulting instance (which is indeed created successfully) is never intercepted. I've verified at runtime that the actual instance of the ILazyComponentLoader registered type is of type MyTypeProxy (in other words Castle is correctly creating a Proxy sub-class for me).

Other pre-created registrations that go through the same IModelInterceptorsSelector are intercepted correctly.

Any idea how I can figure out why this is happening?

Thanks.

+1  A: 

Sorry, being dumb, method was not virtual, please ignore

JeffN825