Table of Contents

Class ServiceCollectionExtensions

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

Extension methods on IServiceCollection to register the necessary rules engine services and types.

public static class ServiceCollectionExtensions
Inheritance
ServiceCollectionExtensions
Inherited Members

Methods

AddRules(IServiceCollection, Action<IRuleTypeScanner>)

Adds necessary components for the Rules Engine to the .NET service collection.

public static void AddRules(this IServiceCollection services, Action<IRuleTypeScanner> scanAction)

Parameters

services IServiceCollection

Service collection to add NRules components to.

scanAction Action<IRuleTypeScanner>

Configuration action on the rule type scanner.