Table of Contents

Class AutofacDependencyResolver

Namespace
NRules.Integration.Autofac
Assembly
NRules.Integration.Autofac.dll

Dependency resolver that uses Autofac DI container.

public class AutofacDependencyResolver : IDependencyResolver
Inheritance
AutofacDependencyResolver
Implements
Inherited Members

Constructors

AutofacDependencyResolver(ILifetimeScope)

public AutofacDependencyResolver(ILifetimeScope container)

Parameters

container ILifetimeScope

Methods

Resolve(IResolutionContext, Type)

Resolves a registered service (normally via an IoC container).

public object Resolve(IResolutionContext context, Type serviceType)

Parameters

context IResolutionContext

Information about the context at which the resolution call is made.

serviceType Type

The type of requested service.

Returns

object

Requested service.