Interface IAuraScriptSandbox
Namespace: EyeAuras.Scripting.Api
Assembly: EyeAuras.Scripting.Metadata.dll
Syntax
public interface IAuraScriptSandbox : IScriptSandbox, IDisposable
Properties
Name | Description |
---|---|
ExecutionAnchors | Manages the lifecycle of execution anchors (disposables) that need to be cleaned up when the script execution completes. |
Log | Provides access to the logging interface for the script. |
Methods
Name | Description |
---|---|
AddContext(IScriptingApiContext) | Adds a scripting context to the current sandbox environment. This context can provide additional services, configuration, or shared objects that will be available to scripts executed in this sandbox. |
AddNewExtension(Type) | Adds a new extension of the specified type to the script container. Validates that the type is not already registered and is assignable to ScriptContainerExtension. |
AddNewExtension<T>() | |
GetService<T>() | Resolves and returns a service of the specified type from the Unity container. |
GetService<TOut, TIn1>(TIn1) | Resolves a factory service that requires one input parameter, then creates and returns an instance of the specified type. |
GetService<TOut, TIn1, TIn2>(TIn1, TIn2) | Resolves a factory service that requires two input parameters, then creates and returns an instance of the specified type. |
GetService<TOut, TIn1, TIn2, TIn3>(TIn1, TIn2, TIn3) | Resolves a factory service that requires three input parameters, then creates and returns an instance of the specified type. |
GetService<TOut, TIn1, TIn2, TIn3, TIn4>(TIn1, TIn2, TIn3, TIn4) | Resolves a factory service that requires four input parameters, then creates and returns an instance of the specified type. |
Sleep(double) | Suspends the execution of the current method for a specified duration. |
Sleep(double, double) | Suspends the execution of the current method for a some time period ranging from |
Sleep(int) | Suspends the execution of the current method for a specified duration. |
Sleep(TimeSpan) | Suspends the execution of the current method for a specified duration. |