Interface IScriptContext
Represents the context in which a script is executed.
public interface IScriptContext
- Extension Methods
Properties
ClassNamespace
Gets the namespace of the class that contains the script.
string ClassNamespace { get; }
Property Value
FileName
Gets the file name of the script, which is typically the name of the script file without the path.
string FileName { get; }
Property Value
FilePath
Gets the file path of the script.
string FilePath { get; }
Property Value
LoaderOptions
Gets the options for loading the script, which may include settings such as assembly load context or other loader-specific options.
ScriptLoaderOptions? LoaderOptions { get; }
Property Value
Log
Gets the logger associated with the script context, used for logging messages related to script execution.
ILogger Log { get; }
Property Value
Name
Gets the name of the script.
string Name { get; }