EyeAuras Docs EyeAuras Docs
EyeAuras Docs EyeAuras Docs
DocFX + Singulink = ♥

Search Results for

    Class AuraScriptSandbox

    Provides a specialized scripting sandbox for Aura scripts, extending the base ScriptSandbox with Aura-specific functionality.

    Inheritance
    object
    DisposableReactiveObject
    ScriptSandbox
    AuraScriptSandbox
    BTExpressionSandbox
    Implements
    INotifyPropertyChanged
    IAuraScriptSandbox
    IScriptSandbox
    IDisposable
    Inherited Members
    ScriptSandbox.Sleep(TimeSpan)
    ScriptSandbox.Sleep(int)
    ScriptSandbox.Sleep(double)
    ScriptSandbox.Sleep(double, double)
    ScriptSandbox.cancellationToken
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: EyeAuras.Scripting.Api
    Assembly: EyeAuras.Scripting.dll
    Syntax
    public class AuraScriptSandbox : ScriptSandbox, INotifyPropertyChanged, IAuraScriptSandbox, IScriptSandbox, IDisposable
    Remarks

    This class serves as a container for the script execution context, offering services and functionalities tailored for Aura scripts. It includes dependency injection capabilities, event logging, and access to specific Aura APIs. The lifecycle of services resolved through this sandbox is managed internally, ensuring proper disposal of resources.

    Constructors

    Name Description
    AuraScriptSandbox(IFluentLog, IAuraObject, IUnityContainer, IUnityRegistrationsLookup)

    Properties

    Name Description
    AuraTree

    Provides scripted access to the Aura tree manipulation API.

    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.

    Variables

    Provides scripted access to the variables API, allowing scripts to declare, retrieve, and manipulate variables.

    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(Type)

    Resolves and returns a service of the specified type from the Unity container.

    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.

    Extension Methods

    ObjectExtensions.AddTo<TItem, TCollection>(TItem, ISourceList<TCollection>)
    ObjectExtensions.AddTo<TItem, TCollection>(TItem, ICollection<TCollection>)
    ObjectExtensions.CloneJson<T>(T)
    ObjectExtensions.CopyPropertiesTo<TSource, TTarget>(TSource, TTarget)
    ObjectExtensions.DumpToJson<T>(T)
    ObjectExtensions.DumpToTextRaw<T>(T)
    ObjectExtensions.DumpToText<T>(T)
    ObjectExtensions.Dump<T>(T)
    ObjectExtensions.EvalOrDefault<T, TValue>(T, Func<T, TValue>, TValue)
    ObjectExtensions.Eval<T, TValue>(T, Func<T, TValue>)
    ObjectExtensions.GetPropertyAccessor<TSource, TValue>(TSource, Expression<Func<TSource, TValue>>)
    ObjectExtensions.InsertTo<TItem, TCollection>(TItem, IList<TCollection>, int)
    ObjectExtensions.ToJson<T>(T, Formatting)
    ObjectExtensions.ToStringSafe<T>(T)
    ObjectExtensions.TransferPropertiesTo<TSource, TTarget>(TSource, TTarget, params string[])
    ObjectExtensions.WaitForAsync<TObject, T1>(TObject, Func<TObject, T1>, Predicate<T1>, TimeSpan, int)
    XDocumentExtensions.AddTo<T>(T, XContainer)
    ObjectExtensions.GetPropertyAccessor<TValue>(object, string)
    ObjectReflectionExtensions.GetPropertyTypeOrDefault(object, string)
    ObjectReflectionExtensions.GetPropertyValue<T>(object, string)
    ObjectReflectionExtensions.SetPropertyValue<T>(object, string, T)
    2025 © Xab3r. All rights reserved.