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
節點實例應該載入和執行之進入點腳本的路徑。
- 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 偵錯工具連線。