Table of Contents

Interface IScriptContext

Namespace
RisingV.Scripting
Assembly
RisingV.Scripting.dll

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

string

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

string

FilePath

Gets the file path of the script.

string FilePath { get; }

Property Value

string

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

ScriptLoaderOptions

Log

Gets the logger associated with the script context, used for logging messages related to script execution.

ILogger Log { get; }

Property Value

ILogger

Name

Gets the name of the script.

string Name { get; }

Property Value

string