Click or drag to resize

DependencyResolverExtensionsGetRootLifetimeScope Method

Gets the root lifetime scope from the Autofac dependency resolver.

Namespace:  Autofac.Integration.WebApi
Assembly:  Autofac.Integration.WebApi (in Autofac.Integration.WebApi.dll) Version: 4.2.0-CI-258
Syntax
public static ILifetimeScope GetRootLifetimeScope(
	this IDependencyResolver dependencyResolver
)

Parameters

dependencyResolver
Type: IDependencyResolver
The dependency resolver from which the root lifetime scope should be retrieved.

Return Value

Type: ILifetimeScope

[Missing <returns> documentation for "M:Autofac.Integration.WebApi.DependencyResolverExtensions.GetRootLifetimeScope(System.Web.Http.Dependencies.IDependencyResolver)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDependencyResolver. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also