Hi Peter,
That's excellent to hear! Please do send your integration - I think
you can upload files to this group, if not then please email me.
Autofac does support multiple registrations for the same service,
though there is no efficient way to expose that information right now
so it isn't part of the container's interface. Each
IComponentRegistration associated with the container has a Services
member - so by iterating over all of the registrations and the
services that they expose, it is possible... There are a couple of
caveats but It wouldn't be hard to add something like:
IEnumerable<IComponentRegistration> Container.GetComponents(Service
service);
An approach you might consider however is to add the handler when the
component is registered:
component.Activating += (sender, e) => {
var sb = (IServiceBehaviour)e.Instance;
// ...
};
Does this make sense in this case? If you're registering WCF services
using an extension to ContainerBuilder then it should be
straightforward to do this way (the IRegistrar interface returned from
most of the Register methods exposes OnRegistered for this purpose.)
I'm looking forward to experimenting with your WCF code, I should be
able to offer a more concrete suggestion for your requirements then.
Thanks again for posting.
Nick
> andhttp://
www.castleproject.org/container/facilities/trunk/wcf/index.html