Skip to content

Class ScriptCaller

Namespace: Apogee.Reflection
Assembly: Apogee.Reflection.dll

Which script is calling the engine right now, on this thread: the scripting layer sets it around every method a script calls, so that an engine class that does work for the script (the UI loading a document that has scripts of its own) can run that work as the same owner, under the same limits. Null outside a call from a script.

public static class ScriptCaller

Inheritance

object ← ScriptCaller

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Properties

Current

The caller as the scripting layer identifies it (an opaque object to everyone else).

public static object? Current { get; }

Property Value

object?

Methods

Enter(object?)

public static ScriptCaller.Restore Enter(object? caller)

Parameters

caller object?

Returns

ScriptCaller.Restore