OutOfProcessNodeInstance 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建 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
一个标记,指示主机应用程序何时停止。
- environmentVars
- IDictionary<String,String>
要对 Node.js 进程设置的环境变量。
- invocationTimeoutMilliseconds
- Int32
等待 RPC 调用完成的最大持续时间(以毫秒为单位)。
- launchWithDebugging
- Boolean
如果为 true,则向 Node.js 进程传递一个标志,告知它接受 V8 调试器连接。
- debuggingPort
- Int32
如果启用调试,Node.js 进程应侦听此端口上的 V8 调试器连接。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈