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
IResolutionContextInformation about the context at which the resolution call is made.
serviceType
TypeThe type of requested service.
Returns
- object
Requested service.