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

ILoggerNode.js インスタンスの stdout/stderr (およびその他のログ情報) を書き込む必要がある 。

environmentVars
IDictionary<String,String>

Node.js プロセスで設定する環境変数。

invocationTimeoutMilliseconds
Int32

RPC 呼び出しの完了を待機する最大時間 (ミリ秒)。

launchWithDebugging
Boolean

true の場合、V8 デバッガー接続を受け入れるように指示するフラグが Node.js プロセスに渡されます。

debuggingPort
Int32

デバッグが有効になっている場合、Node.js プロセスはこのポートで V8 デバッガー接続をリッスンする必要があります。

適用対象