I am not sure if I have this right ... but can anyone point me to a resource that shows how to create a custom container in ASP.NET (Specifically MVC). By container I am talking about a container that is globally available during a session like a DI container (i.e. Ninject or UNity). Thanks in advance开发者_Go百科.
First i assume that you don't know some available resources to make it easier than create a new container: you can use Mvc Turbine which is already supports using any kind of container, in fact it implements a complete Web Application.
if you already know that:
well, i think that your question likes: how to make a car !
there is no specific way to make a container, and i tell you what!! it is a hard mission (not mission impossible) but it very long journey,i don't know if it worth to start from scratch, but if you insist, you can at least try to modify an existing one, like you said, UNITY, or Ninject. however I'm using Windsor Castle Container with my Mvc application and it's great,
and as you said it is available to use during session
精彩评论