InjectionMethod and Ordering

Mar 25, 2008 at 5:49 PM
I have been spending sometime on this and best approach to move on and get it done. Just for my own sanity I need to verify IMethodSelectoPolicy interface:
(For background check the initial discussion thread

DefaultUnityMethodSelectorPolicy allows override CreateResolver method. Where-as (OB2) SelectMethods/MethodSelectorPolicyBase does not allowed to be overridden in derived classes.

I could always write a new version of IMethodSelectorPolicy which would allow SelectMethods to be overridden in derived classes. This option would make the coding easier for this extension but currently there are no contrib. guidelines and not sure if I should take this path.

Question: Are there any reasons why SelectMethods in IMethodSelectorPolicy is not allowed to be overridden in any derived classes?

Mar 25, 2008 at 6:32 PM
I'll make those methods virtual. You're right, they should be overrideable.