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