Returns an
IDisposable scope, checks that ThreadDataManager is initialized for the current thread, if not - does the initialization.
Should be called in all non ASP.NET threads, that are using C1 data API.
Namespace: Composite.Core.ThreadingAssembly: Composite (in Composite.dll) Version: 5.3.6135.33083
Syntax
Examples
CopyC#
using (Composite.Core.Threading.ThreadDataManager.EnsureInitialize())
using (var conn = new DataConnection(PublicationScope.Published, new CultureInfo("en-US")))
{
var pages = conn.Get<Composite.Data.Types.IPage>();
}
See Also