We are currently using windsor in our MVC 3 web app. We currently initialize the WindsorContainer via a static constructor in global.asax to resolve global Logging components and Windows Identity Foundation components. This seems to work well but I realized that we never dispose of the container. This seems like a possible anti pattern. What are the best places to instantiate / dispose the Windsor container in global.asax?thanks
--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/castle-project-users/-/bT9zo6puEiYJ.
To post to this group, send email to castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
IWindsorContainer container. I typically see static methods initializing static variables. Is it safe for an instance method (Application_Start) to initialize a static variable (IWindsorContainer container)?