OutOfProcessNodeInstance 构造函数

定义

创建 OutOfProcessNodeInstance 的新实例。

public:
 OutOfProcessNodeInstance(System::String ^ entryPointScript, System::String ^ projectPath, cli::array <System::String ^> ^ watchFileExtensions, System::String ^ commandLineArguments, System::Threading::CancellationToken applicationStoppingToken, Microsoft::Extensions::Logging::ILogger ^ nodeOutputLogger, System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ environmentVars, int invocationTimeoutMilliseconds, bool launchWithDebugging, int debuggingPort);
public OutOfProcessNodeInstance (string entryPointScript, string projectPath, string[] watchFileExtensions, string commandLineArguments, System.Threading.CancellationToken applicationStoppingToken, Microsoft.Extensions.Logging.ILogger nodeOutputLogger, System.Collections.Generic.IDictionary<string,string> environmentVars, int invocationTimeoutMilliseconds, bool launchWithDebugging, int debuggingPort);
new Microsoft.AspNetCore.NodeServices.HostingModels.OutOfProcessNodeInstance : string * string * string[] * string * System.Threading.CancellationToken * Microsoft.Extensions.Logging.ILogger * System.Collections.Generic.IDictionary<string, string> * int * bool * int -> Microsoft.AspNetCore.NodeServices.HostingModels.OutOfProcessNodeInstance
Public Sub New (entryPointScript As String, projectPath As String, watchFileExtensions As String(), commandLineArguments As String, applicationStoppingToken As CancellationToken, nodeOutputLogger As ILogger, environmentVars As IDictionary(Of String, String), invocationTimeoutMilliseconds As Integer, launchWithDebugging As Boolean, debuggingPort As Integer)

参数

entryPointScript
String

Node 实例应加载和执行的入口点脚本的路径。

projectPath
String

当前项目的根路径。 解析相对于项目根目录 Node.js 模块路径时,使用此方法。

watchFileExtensions
String[]

应在项目根目录中监视的文件扩展名。 如果任何匹配的文件发生更改,Node 实例将自动关闭自身。

commandLineArguments
String

要传递给 Node.js 实例的其他命令行参数。

applicationStoppingToken
CancellationToken

一个标记,指示主机应用程序何时停止。

nodeOutputLogger
ILogger

ILogger 将 Node.js 实例的 stdout/stderr (和其他日志信息写入) 。

environmentVars
IDictionary<String,String>

要对 Node.js 进程设置的环境变量。

invocationTimeoutMilliseconds
Int32

等待 RPC 调用完成的最大持续时间(以毫秒为单位)。

launchWithDebugging
Boolean

如果为 true,则向 Node.js 进程传递一个标志,告知它接受 V8 调试器连接。

debuggingPort
Int32

如果启用调试,Node.js 进程应侦听此端口上的 V8 调试器连接。

适用于