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