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?
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?