Table of Contents

Interface IDependencyResolver

Namespace
NRules.Extensibility
Assembly
NRules.dll

Defines a mechanism to resolve rule dependencies at runtime. An instance of IDependencyResolver can be assigned to DependencyResolver or DependencyResolver, so that all requests for rule dependencies resolution are fulfilled by that resolver.

public interface IDependencyResolver

Remarks

If dependency resolver is not configured, any attempt to resolve rule dependencies will result in exception.

Methods

Resolve(IResolutionContext, Type)

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

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.