Click or drag to resize

RequestLifetimeScopeProvider Class

Creates and disposes HTTP request based lifetime scopes.
Inheritance Hierarchy
SystemObject
  Autofac.Integration.MvcRequestLifetimeScopeProvider

Namespace:  Autofac.Integration.Mvc
Assembly:  Autofac.Integration.Mvc (in Autofac.Integration.Mvc.dll) Version: 6.0.0+106fe194fc419c09f32d39119967f68798cc6895
Syntax
public class RequestLifetimeScopeProvider : ILifetimeScopeProvider

The RequestLifetimeScopeProvider type exposes the following members.

Constructors
  NameDescription
Public methodRequestLifetimeScopeProvider
Initializes a new instance of the RequestLifetimeScopeProvider class.
Top
Properties
  NameDescription
Public propertyApplicationContainer
Gets the global, application-wide container.
Top
Methods
  NameDescription
Public methodEndLifetimeScope
Ends the current HTTP request lifetime scope.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLifetimeScope
Gets a nested lifetime scope that services can be resolved from.
Protected methodGetLifetimeScopeCore
Gets a lifetime scope for the current HTTP request. This method can be overridden to alter the way that the life time scope is constructed.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
The provider is notified when a HTTP request ends by the RequestLifetimeHttpModule.
See Also