Class ScriptScope¶
Namespace: Apogee.Reflection
Assembly: Apogee.Reflection.dll
The scope of the module that is loading now, on this thread; libraries that register things for scripts call
public static class ScriptScope
Inheritance¶
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Properties¶
Current¶
The scope of the module that is loading now on this thread, or null. A library that starts something later (the task scheduler) notes it to tie that to the module.
public static ReloadScope? Current { get; }
Property Value¶
Methods¶
Enter(ReloadScope)¶
Makes scope the current one until the result is disposed.
public static ScriptScope.Restore Enter(ReloadScope scope)
Parameters¶
scope ReloadScope
Returns¶
OnReload(Action)¶
Records how to take back what was just registered; does nothing outside a module that is loading (what a script registers later is the script's to manage).
public static void OnReload(Action cleanup)
Parameters¶
cleanup Action