Is there any reason to switch from the default area (transitional?) To something else, beyond the need to control the area for functional reasons (for example, Singleton)?
If I stick to the default scope, each default instance of each type of plugin will be effectively created on every request (assuming the web application), is this correct? Could this affect performance noticeably?
I considered using the Http Session scope to limit this to one instance for each registered user. However, this will result in (at least) one instance of each type of plugin stored in memory for each user at any time. Using the default scope, these instances will only be stored in memory during the processing of the page request. I am not sure which is preferable.
If you use StructureMap, how do you usually customize the scope for each of your plugin types?
Thank you for understanding,
Phil
c # inversion-of-control structuremap
Phil sandler
source share