Table of Contents

Class RuleWrightFunctionExtensions

Namespace
RuleWright.Extensions.Functions
Assembly
RuleWright.Extensions.Functions.dll

Convenience registration and discovery helpers over RegisterFunction(IRuleFunction): register many functions at once, register the whole built-in catalog, or scan an assembly for function implementations.

public static class RuleWrightFunctionExtensions
Inheritance
RuleWrightFunctionExtensions
Inherited Members

Methods

RegisterBuiltInFunctions(RuleWrightBuilder, Func<DateTime>?)

Registers the built-in function catalog (see BuiltInFunctions).

RegisterFunctions(RuleWrightBuilder, IEnumerable<IRuleFunction>)

Registers each function in functions on the builder, in order.

RegisterFunctionsFrom(RuleWrightBuilder, Assembly)

Scans an assembly and registers every public, concrete IRuleFunction type that has a public parameterless constructor. Discovery lets a project keep its rule functions as ordinary classes and wire them up with one call instead of registering each by hand.