This has just been committed. Checking the test cases, it shows how it should work:
container.Register( AllTypesOf<IService>.
FromAssembly( Assembly.Load("MyServicesAssembly") ) );
Check the message for more usage examples. I hope it’s the end of the Batch Registration Facility
Craig, you’re the man!
March 1st, 2008 at 2:30 pm
darn, 2 weeks after I just wrote a damn near identical function for our project … Well done guys, always impressive work
March 3rd, 2008 at 4:14 am
Why not use Binsor instead?
March 3rd, 2008 at 8:44 am
Hah. This is awesome.
@Darius: Binsor still hasn’t been separated from Rhino Commons, has it?
March 3rd, 2008 at 12:35 pm
Binsor is one more dependency both in code and in learn. It should be justified.
March 3rd, 2008 at 4:56 pm
Hammett,
Why do you want to move away from the batch registration facility? I am rather fond of it, what am I missing?
March 3rd, 2008 at 7:48 pm
Nick, I just find the attributes too intrusive.
March 4th, 2008 at 5:36 am
@efdee: thats very true, Binsor is Rhino.Commons
August 31st, 2008 at 11:06 am
Is this still available?
I’m using ASP.NET MVC MVCContrib and would like to use this to register all my ‘IDao’ objects (in one assembly) that are injected into my controllers.