autofac - Component registration override -
we produce toolkit can supported various ioc containers, toolkit ioc-agnostic , provide basic support different containers. working support autofac, need allow end users override our configuration, part, based on conventions.
i'll explain happens windsor understand if there similar mechanism autofac.
the toolkit provides set of built-in services/component "automagically" registrated in end-user container. windsor register "fallback" if user register same service "default" user component resolved overriding our registration.
the interesting thing of approach works regardless of order in components registered.
any way achieve same behavior autofac? .m
i think you're looking preserveexistingdefaults
extension. can read more in autofac wiki: https://code.google.com/p/autofac/wiki/componentcreation
Comments
Post a Comment