Class ExpressionSandbox

Assembly: redb.Route.dll

Restricts what an expression may do while the scope is open: no method invocation through
reflection on the objects an expression reaches. Built-in functions and the string helpers
(contains, substring, length, ...) stay available. Opened by hosts that
evaluate expressions written as data — a payload template's expr() and its arguments —
so a template can read members but never run code. Flows with the async context and nests.

public static class ExpressionSandbox

Inheritance

Object→ExpressionSandbox

Properties

IsActive

Whether a sandbox scope is open on the current flow.

public static bool IsActive { get; }

Methods

Enter()

Opens a scope; dispose the result to leave it.

public static IDisposable Enter()