Click or drag to resize

LifetimeScopeBeginLifetimeScope Method

Begin a new anonymous sub-scope. Instances created via the sub-scope will be disposed along with it.

Namespace:  Autofac.Core.Lifetime
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public ILifetimeScope BeginLifetimeScope()

Return Value

Type: ILifetimeScope
A new lifetime scope.

Implements

ILifetimeScopeBeginLifetimeScope
See Also