Registering a Custom DependencyRegistrar

26 views
Skip to first unread message

Canuck

unread,
Jun 23, 2011, 2:35:50 PM6/23/11
to OpenRasta
I have a custom DependencyRegistrar that removed the
DigestAuthroizerContributor but I cannot figure out how to hook it up.
I tried ResourceSpace.Has.CustomDependency<IDependencyRegistrar,
CustomDependencyResgistrar>() but my code was never called.

Is this how you wire up a dependency registrar or is there another
hook somewhere that I do not know about?

Sebastien Lambla

unread,
Jun 24, 2011, 11:41:27 AM6/24/11
to open...@googlegroups.com
It depends what container you use, but yes providing your own custom registrar is how it ought to be done. What container / hosting do you use?

Canuck

unread,
Jun 24, 2011, 4:31:29 PM6/24/11
to OpenRasta
I am using Castle / IIS 7.

Should I register it through the OR DI interface or go directly to my
windsor container? Does it matter which one I use?

Sebastien Lambla

unread,
Jun 25, 2011, 8:40:36 AM6/25/11
to open...@googlegroups.com
I think if you simply pre-register it in your container of choice that'll just work. I'm not sure of the behaviour with castle, my memory fails me, but it'd be good to test it out :)

Canuck

unread,
Jun 28, 2011, 10:01:02 AM6/28/11
to OpenRasta
So with Castle registering the DependencyRegistrar through the OR DI
interface does NOT work. Pre-registering it thought the Windsor
container works like a charm.

Thanks seb
Reply all
Reply to author
Forward
0 new messages