Skip to content

ManagedHost class

Supports loading and invoking managed .NET assemblies in a JavaScript process.

C#
public sealed class ManagedHost : JSEventEmitter

Public Members

namedescription
ManagedHost(…)Creates a new instance of a ManagedHost that supports loading and invoking managed .NET assemblies in a JavaScript process.
LoadAssembly(…)Loads an arbitrary .NET assembly that isn't necessarily designed as a JS module, enabling dynamic invocation of any APIs in the assembly.
LoadModule(…)Loads a .NET assembly that was built to be a Node API module, using static binding to the APIs the module specifically exports to JS.
static IsTracingEnabled { get; }
static GetFrameworkMoniker(…)
static GetRuntimeVersion(…)
static InitializeModule(…)Called by the native host to initialize the managed host module. Initializes an instance of the managed host and returns the exports object from it.
static Trace(…)
static TraceDebug(…)

Protected Members

namedescription
override Dispose(…)

See Also

Released under the MIT license