Table of Contents

Class DependencyResolver

Namespace
NRules.Integration.DependencyInjection
Assembly
NRules.Integration.DependencyInjection.dll

Dependency resolver that uses .NET DI container.

public class DependencyResolver : IDependencyResolver
Inheritance
DependencyResolver
Implements
Inherited Members

Constructors

DependencyResolver(IServiceProvider)

Creates a dependency resolver that uses the specified service provider.

public DependencyResolver(IServiceProvider serviceProvider)

Parameters

serviceProvider IServiceProvider

Service provider to use to resolve dependencies.

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.