DependencyInjectionScopeBeginScope Method |
(Re)starts the scope and will add the scope to the dependency injection provider. Use this method if the scope was already stopped via the
EndScope or (indirectly) through the Dispose method, and you want to re-start it, which can be useful if your scope contains a lot of injection
info and rebuilding it can take a couple of milliseconds so you can store scope instances in a thread local cache for example.
Namespace: SD.LLBLGen.Pro.ORMSupportClassesAssembly: SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.0.0.0 (5.0.0)
Syntax Remarks You don't have to call StartScope explicitly after you've created the scope instance as the constructor calls StartScope automatically
See Also