Try our conversational search powered by Generative AI!

Scope/Lifetime of EPiServer CustomProperties and/or EPiServerMail RecipientSources

Vote:
 

Hi,

I'm new to developing for/with EPiServer and wanted to check what kind of lifetimes certain plugable areas have.  For example if a custom property requires data access and I've written that using a linq2sql data context stored within the state of the class is the class only going to be instantiated and removed when needed or is a single version instantiated and kept around?  Similarly for custom RecipientSources in EPiServerMail should each method create the context when needed, rather than creating it in the constructor or having it passed in and kept in a property?

#45207
Nov 02, 2010 15:08
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.