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
{{ message }}
Repository navigation
Commit b444831
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.NodeServices/HostingModels/OutOfProcessNodeInstance.cs
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,7 @@ public abstract class OutOfProcessNodeInstance : INodeInstance
45
45
/// <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>
46
46
/// <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>
47
47
/// <param name="commandLineArguments">Additional command-line arguments to be passed to the Node.js instance.</param>
48
+
/// <param name="applicationStoppingToken">A token that indicates when the host application is stopping.</param>
48
49
/// <param name="nodeOutputLogger">The <see cref="ILogger"/> to which the Node.js instance's stdout/stderr (and other log information) should be written.</param>
49
50
/// <param name="environmentVars">Environment variables to be set on the Node.js process.</param>
50
51
/// <param name="invocationTimeoutMilliseconds">The maximum duration, in milliseconds, to wait for RPC calls to complete.</param>
@@ -55,6 +56,7 @@ public OutOfProcessNodeInstance(
55
56
stringprojectPath,
56
57
string[]watchFileExtensions,
57
58
stringcommandLineArguments,
59
+
CancellationTokenapplicationStoppingToken,
58
60
ILoggernodeOutputLogger,
59
61
IDictionary<string,string>environmentVars,
60
62
intinvocationTimeoutMilliseconds,
@@ -67,7 +69,7 @@ public OutOfProcessNodeInstance(
returnnewStringAsTempFile(script);// Will be cleaned up on process exit
20
-
});
21
-
}
15
+
privatestaticStringAsTempFileNodeScript;
22
16
23
17
/// <summary>
24
18
/// Performs server-side prerendering by invoking code in Node.js.
25
19
/// </summary>
26
20
/// <param name="applicationBasePath">The root path to your application. This is used when resolving project-relative paths.</param>
27
21
/// <param name="nodeServices">The instance of <see cref="INodeServices"/> that will be used to invoke JavaScript code.</param>
22
+
/// <param name="applicationStoppingToken">A token that indicates when the host application is stopping.</param>
28
23
/// <param name="bootModule">The path to the JavaScript file containing the prerendering logic.</param>
29
24
/// <param name="requestAbsoluteUrl">The URL of the currently-executing HTTP request. This is supplied to the prerendering code.</param>
30
25
/// <param name="requestPathAndQuery">The path and query part of the URL of the currently-executing HTTP request. This is supplied to the prerendering code.</param>
0 commit comments