Constructors
-
Lifetime
Scope(IComponent Initializes a new instance of the LifetimeScope class.Registry) -
Lifetime
Scope(IComponent protected Initializes a new instance of the LifetimeScope class.Registry, Lifetime Scope, Object) -
Lifetime
Scope(IComponent Initializes a new instance of the LifetimeScope class.Registry, Object)
Methods
-
Begin
Lifetime sealed Begin a new anonymous sub-scope. Instances created via the sub-scope will be disposed along with it.Scope() -
Begin
Lifetime sealed Begin a new anonymous sub-scope, with additional components available to it. Component instances created via the new scope will be disposed along with it.Scope(Action<Container Builder>) -
Begin
Lifetime sealed Begin a new tagged sub-scope. Instances created via the sub-scope will be disposed along with it.Scope(Object) -
Begin
Lifetime sealed Begin a new tagged sub-scope, with additional components available to it. Component instances created via the new scope will be disposed along with it.Scope(Object, Action<Container Builder>) - Dispose(Boolean) protectedvirtual Releases unmanaged and - optionally - managed resources.
-
Get
Or sealed Try to retrieve an instance based on a GUID key. If the instance does not exist, invoke creator to create it.Create And Share(Guid, Func<Object>) -
Get
Service(Type) sealed Gets the service object of the specified type. -
Resolve
Component(IComponent sealed Resolve an instance of the provided registration within the context.Registration, IEnumerable<Parameter>)
Fields
-
Root
Tag static The tag applied to root scopes when no other tag is specified.
Properties
-
Component
Registry sealed Gets the services associated with the components that provide them. - Disposer sealed Gets the disposer associated with this container. Instances can be associated with it manually if required.
-
Parent
Lifetime sealed Gets the parent of this node of the hierarchy, or null.Scope -
Root
Lifetime sealed Gets the root of the sharing hierarchy.Scope -
Self
Registration staticId - Tag sealed Gets the tag applied to the lifetime scope.
Events
-
Child
Lifetime sealed Fired when a new scope based on the current scope is beginning.Scope Beginning -
Current
Scope sealed Fired when this scope is ending.Ending -
Resolve
Operation sealed Fired when a resolve operation is beginning in this scope.Beginning