Table of Contents

Method RegisterBuiltInFunctions

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

RegisterBuiltInFunctions(RuleWrightBuilder, Func<DateTime>?)

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

public static RuleWrightBuilder RegisterBuiltInFunctions(this RuleWrightBuilder builder, Func<DateTime>? clock = null)

Parameters

builder RuleWrightBuilder

The builder.

clock Func<DateTime>

Optional clock for the date-relativity predicates; defaults to UtcNow.

Returns

RuleWrightBuilder

The same builder, for chaining.

Exceptions

ArgumentNullException

builder is null.

ArgumentException

A built-in name collides with one already registered.