Class ReportCodeHost
- Namespace
- DocWright.Reporting.Expressions
- Assembly
- DocWright.Reporting.dll
Runs a report's custom code — the <Code> block and <CodeModules> — for
a host that has decided to allow it.
public abstract class ReportCodeHost
- Inheritance
-
ReportCodeHost
- Inherited Members
Remarks
Refused by default, and DocWright ships no implementation. Custom code is Visual
Basic taken from the definition. Executing it in a server process means executing whatever an
uploaded file contains. Without a host every Code.Name(...) call is refused with
DXP9103; the definition itself is still read, modelled and saved unchanged.
A host that does implement this owns the sandboxing, the time and memory limits, and the determinism of what it runs: the evaluation budgets cannot see inside a host call.
Constructors
- ReportCodeHost()
Initializes the base class.
Methods
- TryInvoke(string, IReadOnlyList<object?>, out object?)
Invokes a member of the report's custom code.