DependencyInjectionScope Class |
Namespace: SD.LLBLGen.Pro.ORMSupportClasses
The DependencyInjectionScope type exposes the following members.
Name | Description | |
---|---|---|
DependencyInjectionScope |
Initializes a new instance of the DependencyInjectionScope class.
|
Name | Description | |
---|---|---|
AddInjectionInfo(Type, Type, String) |
Adds the injection info passed in to the scope data. Call this method one or more times from an override of InitializeScope.
| |
AddInjectionInfo(Type, Type, String, DependencyInjectionTargetKind, DependencyInjectionContextType) |
Adds the injection info passed in to the scope data. Call this method one or more times from an override of InitializeScope.
| |
AddInjectionInfo(Type, Type, String, DependencyInjectionTargetKind, DependencyInjectionContextType, IEnumerableString) |
Adds the injection info passed in to the scope data. Call this method one or more times from an override of InitializeScope.
| |
BeginScope |
(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.
| |
Dispose |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
| |
EndScope |
Ends the scope and removes the scope from the dependency injection provider. After this method, call StartScope again to re-add the DI data to
the provider again.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InitializeScope |
Initializes the scope. Use this method to add injection info to the scope by subsequential calls to AddInjectionInfo
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |