You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Represents an instance of Node.js to which Remote Procedure Calls (RPC) may be sent.
9
+
/// </summary>
7
10
publicinterfaceINodeInstance:IDisposable
8
11
{
12
+
/// <summary>
13
+
/// Asynchronously invokes code in the Node.js instance.
14
+
/// </summary>
15
+
/// <typeparam name="T">The JSON-serializable data type that the Node.js code will asynchronously return.</typeparam>
16
+
/// <param name="cancellationToken">A <see cref="CancellationToken"/> that can be used to cancel the invocation.</param>
17
+
/// <param name="moduleName">The path to the Node.js module (i.e., JavaScript file) relative to your project root that contains the code to be invoked.</param>
18
+
/// <param name="exportNameOrNull">If set, specifies the CommonJS export to be invoked. If not set, the module's default CommonJS export itself must be a function to be invoked.</param>
19
+
/// <param name="args">Any sequence of JSON-serializable arguments to be passed to the Node.js function.</param>
20
+
/// <returns>A <see cref="Task{TResult}"/> representing the completion of the RPC call.</returns>
/// Creates a new instance of <see cref="OutOfProcessNodeInstance"/>.
52
+
/// </summary>
53
+
/// <param name="entryPointScript">The path to the entry point script that the Node instance should load and execute.</param>
54
+
/// <param name="projectPath">The root path of the current project. This is used when resolving Node.js module paths relative to the project root.</param>
55
+
/// <param name="watchFileExtensions">The filename extensions that should be watched within the project root. The Node instance will automatically shut itself down if any matching file changes.</param>
56
+
/// <param name="commandLineArguments">Additional command-line arguments to be passed to the Node.js instance.</param>
57
+
/// <param name="nodeOutputLogger">The <see cref="ILogger"/> to which the Node.js instance's stdout/stderr (and other log information) should be written.</param>
58
+
/// <param name="environmentVars">Environment variables to be set on the Node.js process.</param>
59
+
/// <param name="invocationTimeoutMilliseconds">The maximum duration, in milliseconds, to wait for RPC calls to complete.</param>
60
+
/// <param name="launchWithDebugging">If true, passes a flag to the Node.js process telling it to accept V8 debugger connections.</param>
61
+
/// <param name="debuggingPort">If debugging is enabled, the Node.js process should listen for V8 debugger connections on this port.</param>
46
62
publicOutOfProcessNodeInstance(
47
63
stringentryPointScript,
48
64
stringprojectPath,
@@ -71,6 +87,15 @@ public OutOfProcessNodeInstance(
71
87
ConnectToInputOutputStreams();
72
88
}
73
89
90
+
/// <summary>
91
+
/// Asynchronously invokes code in the Node.js instance.
92
+
/// </summary>
93
+
/// <typeparam name="T">The JSON-serializable data type that the Node.js code will asynchronously return.</typeparam>
94
+
/// <param name="cancellationToken">A <see cref="CancellationToken"/> that can be used to cancel the invocation.</param>
95
+
/// <param name="moduleName">The path to the Node.js module (i.e., JavaScript file) relative to your project root that contains the code to be invoked.</param>
96
+
/// <param name="exportNameOrNull">If set, specifies the CommonJS export to be invoked. If not set, the module's default CommonJS export itself must be a function to be invoked.</param>
97
+
/// <param name="args">Any sequence of JSON-serializable arguments to be passed to the Node.js function.</param>
98
+
/// <returns>A <see cref="Task{TResult}"/> representing the completion of the RPC call.</returns>
0 commit comments