Click or drag to resize
DependencyInjectionScope Methods

The DependencyInjectionScope type exposes the following members.

Methods
  NameDescription
Protected methodAddInjectionInfo(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.
Protected methodAddInjectionInfo(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.
Protected methodAddInjectionInfo(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.
Public methodBeginScope
(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.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEndScope
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.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodInitializeScope
Initializes the scope. Use this method to add injection info to the scope by subsequential calls to AddInjectionInfo
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also