Table of Contents

Interface IRuleFunction

Namespace
RuleWright.Core
Assembly
RuleWright.Core.dll

A custom condition function referenced from JSON as { "operator": "custom", "name": "..." }. Implementations are registered with the engine builder and bound into compiled rules at compile time — no name lookup or reflection happens per evaluation.

public interface IRuleFunction

Remarks

Implementations must be thread-safe: a single instance is shared across all concurrent evaluations of every rule that references it.

Properties

Name

The name the function is referenced by in rule JSON. Case-sensitive.

Methods

Evaluate(object?, object?)

Evaluates the condition.