[T5] Re-inject or inherit services in children ?

2007-12-06 Thread Francois Armand
Hello ! My project is a little more advanced, so I spent some time refactoring the code. Along this refactoring, I saw that I have a lot if component and class that inherit a base page (yes, that's why I have a base page ;). I inject on this page some quite common services (for example, an

Re: [T5] Re-inject or inherit services in children ?

2007-12-06 Thread Howard Lewis Ship
I've found that, quite often, there's a little bit of processing around the injected service method invocation, so that's where the base page can really add some value: collect and pre-processing the values before invoking the method. For example, I was just working on PageLink and ActionLink and

Re: [T5] Re-inject or inherit services in children ?

2007-12-06 Thread Francois Armand
Howard Lewis Ship wrote: [..] I kind of think that if you can't find a true purpose for the base class beyond a convienient place for the common injections, then perhaps you are on the wrong track. Well, now that you explain me that, I think it's my problem. I almost only use the base