Click or drag to resize

DependencyResolverExtensionsGetRequestLifetimeScope Method

Gets the request lifetime scope from the Autofac dependency scope.

Namespace:  Autofac.Integration.WebApi
Assembly:  Autofac.Integration.WebApi (in Autofac.Integration.WebApi.dll) Version: 6.0.0+03bf347ff3a78c2557675254b1a417eef4b464ec
Syntax
public static ILifetimeScope GetRequestLifetimeScope(
	this IDependencyScope dependencyScope
)

Parameters

dependencyScope
Type: IDependencyScope
The dependency scope from which the request lifetime scope should be retrieved.

Return Value

Type: ILifetimeScope

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDependencyScope. 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