The tests are indeed the best source of binsor documentation. I'll look for that code. Should be able to find it soon. It's just a matter of using reflection appropriately.
On Thu, Feb 26, 2009 at 9:54 AM, Bergius <[email protected]> wrote: > > Thank you for your reply. > > That is exactly what I want to achieve, and I'd really appreciate if > you would dig up that code. > > Are the tests the best source for Binsor documentation, or is there a > hidden documentation cache somewhere? :) > > On Feb 26, 4:40 pm, Nathan Stott <[email protected]> wrote: > > You have to follow conventions and register based upon them if you want > to > > pull this off. > > If I am understanding you correctly, then you'll want some algorithm like > > this: > > > > 1) retrieve all interface types that inherit from IRepository<T> from an > > assembly > > 2) find concrete types that implement your specific interface type > > (ISomethingRepository) > > 3) register the concrete type as an implementation of ISomething > Repository > > and also as an implemntation of IRepository<Something> > > > > You can do this in Binsor. > > > > If this is the algorithm you want to follow, I can dig up some code from > > where I've done something similar before. > > > > Is that what you're trying to accomplish? > > > > On Thu, Feb 26, 2009 at 6:04 AM, Bergius <[email protected]> wrote: > > > > > Hi. I'm getting tired of wiring up stuff by hand, but I can't quite > > > figure out the Binsor recipe for autoregistration success with this > > > structure: > > > > > ARRepository<T> : IRepository<T> > > > ISomethingRepository : IRepository<Something> > > > ARSomethingRepository : ARRepository<Something>, ISomethingRepository > > > > > I want to achieve this for all my repos, but automatically: > > > component ARSomethingRepository < IRepository of Something, > > > ISomethingRepository > > > > > I've googled around, but all I've managed to find are four-liners to > > > wire up implementations with a single interface. > > > > > Any pointers? > > > > > / Bergius > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Rhino Tools Dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rhino-tools-dev?hl=en -~----------~----~----~----~------~----~------~--~---
