Click or drag to resize

AutofacWebApiDependencyResolver Class

Autofac implementation of the IDependencyResolver interface.
Inheritance Hierarchy
SystemObject
  Autofac.Integration.WebApiAutofacWebApiDependencyResolver

Namespace:  Autofac.Integration.WebApi
Assembly:  Autofac.Integration.WebApi (in Autofac.Integration.WebApi.dll) Version: 4.2.0-CI-258
Syntax
public class AutofacWebApiDependencyResolver : IDependencyResolver, 
	IDependencyScope, IDisposable

The AutofacWebApiDependencyResolver type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyContainer
Gets the root container provided to the dependency resolver.
Top
Methods
  NameDescription
Public methodBeginScope
Starts a resolution scope. Objects which are resolved in the given scope will belong to that scope, and when the scope is disposed, those objects are returned to the container.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Finalizes an instance of the AutofacWebApiDependencyResolver class.
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetService
Try to get a service of the given type.
Public methodGetServices
Try to get a list of services of the given type.
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
Extension Methods
  NameDescription
Public Extension MethodGetRequestLifetimeScope
Gets the request lifetime scope from the Autofac dependency scope.
(Defined by DependencyResolverExtensions.)
Public Extension MethodGetRootLifetimeScope
Gets the root lifetime scope from the Autofac dependency resolver.
(Defined by DependencyResolverExtensions.)
Top
See Also