How can I have a Windsor IoC container that can be shared amongst my classes but not shared across m
Posted
by Si Keep
on Stack Overflow
See other posts from Stack Overflow
or by Si Keep
Published on 2010-05-28T08:16:21Z
Indexed on
2010/05/28
8:21 UTC
Read the original article
Hit count: 212
I am building a set of class libraries that produce office open xml based reports and I am using a static Windsor IoC container.
My problem is that one possible entry point to the reporting system is via a web front end which means that the reporting systems static IoC Container is being shared amongst multiple web requests which causes exceptions as for each new request the reporting system is trying re-register components in Windsor that were already registered by an earlier request.
I dont want to move the registration into the web app global.asax as my reporting system will no longer be stand-alone.
How can I have a Windsor IoC container that can be shared amongst my reporting classes but not shared across multiple web requests?
© Stack Overflow or respective owner