Search Results for

    Show / Hide Table of Contents

    Class MDomain

    Domain separates multiple processes within one executed CLR environment.

    At once you can execute methods, get instances etc, only from on Domain at the time. If you want to execute any code that given domain contains, you need to switch context, and dispatch current thread to CLR environment.

    Inheritance
    MDomain
    Inherited Members
    MDomain
    Assembly: FlaxEngine.dll
    File: Engine/Scripting/ManagedCLR/MDomain.h
    Syntax
    public class MDomain

    Constructors

    MDomain(const StringAnsi& domainName)

    Declaration
    public MDomain(const StringAnsi& domainName)
    Parameters
    StringAnsi domainName

    Methods

    Dispatch()

    Attaches current CLR domain calls to the current thread.

    Declaration
    public void Dispatch() const

    GetAssemblies()

    Gets the current domain assemblies.

    Declaration
    public AssembliesDictionary GetAssemblies() const
    Returns
    AssembliesDictionary

    GetName()

    Gets current domain name

    Declaration
    public StringAnsi GetName() const
    Returns
    StringAnsi

    SetCurrentDomain(bool force=false)

    Sets currently using domain.

    Declaration
    public bool SetCurrentDomain(bool force=false)
    Parameters
    bool force

    Returns
    bool

    True if succeed in settings, false if failed.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat