Hi All,
I am trying to design a Infrastructure libraries for my company. Libraries will have typical components like logging, exception handling, email etc. These componants will be used by all the ASP.Net applications hosted on our environment (so hosting environment is my control).
My first step in design is that I would not like the ASP.nEt apps to have direct reference to the library componants. So i am thinking to Injecting these dependecies at runtime. I have evaluated quite a few DI containers (unity, spring.net etc)
But what i dont have to do is to force all the ASP.Net applications to use this DI container. They will be getting a interface Dll for all the library componants and some kind factory dll which will give them the concrete instance of the componant.
My question is whats the best way to design this Factory dll so that only one dll can service all the ASP.Net applications? Can i use one DI container to service all the ASP.Net applications?