Skip to content

NodeEmbeddingPlatform class

Manages a Node.js platform instance, provided by libnode.

C#
public sealed class NodeEmbeddingPlatform : IDisposable

Public Members

namedescription
NodeEmbeddingPlatform(…)Initializes the Node.js platform.
static Current { get; }Gets the Node.js platform instance for the current process, or null if not initialized.
Handle { get; }
IsDisposed { get; }Gets a value indicating whether the current platform has been disposed.
CreateThreadRuntime(…)Creates a new Node.js embedding runtime with a dedicated main thread.
Dispose()Disposes the platform. After disposal, another platform instance may not be initialized in the current process.
GetParsedArgs()
GetRuntimeParsedArgs()
explicit operator

Remarks

Only one Node.js platform instance can be created per process. Once the platform is disposed, another platform instance cannot be re-initialized. One or more NodeEmbeddingThreadRuntime instances may be created using the platform.

See Also

Released under the MIT license