Table of Contents

Class LifetimeScope

Namespace
Autofac.Core.Lifetime
Assembly
Autofac.dll
public class LifetimeScope : Disposable, ISharingLifetimeScope, ILifetimeScope, IComponentContext
Inheritance
LifetimeScope
Implements
Inherited Members
Extension Methods

Constructors

LifetimeScope(IComponentRegistry)
LifetimeScope(IComponentRegistry, LifetimeScope, object)
LifetimeScope(IComponentRegistry, object)

Fields

RootTag

Properties

ComponentRegistry
Disposer
ParentLifetimeScope
RootLifetimeScope
Tag

Methods

BeginLifetimeScope()
BeginLifetimeScope(Action<ContainerBuilder>)
BeginLifetimeScope(object)
BeginLifetimeScope(object, Action<ContainerBuilder>)
BeginLoadContextLifetimeScope(object, AssemblyLoadContext, Action<ContainerBuilder>)
BeginLoadContextLifetimeScope(AssemblyLoadContext, Action<ContainerBuilder>)
CreateSharedInstance(Guid, Func<object>)
CreateSharedInstance(Guid, Guid?, Func<object>)
Dispose(bool)
DisposeAsync(bool)
GetService(Type)
ResolveComponent(in ResolveRequest)
TryGetSharedInstance(Guid, Guid?, out object?)
TryGetSharedInstance(Guid, out object?)

Events

ChildLifetimeScopeBeginning
CurrentScopeEnding
ResolveOperationBeginning