OutOfProcessNodeInstance Konstruktor

Definice

Vytvoří novou instanci položky 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)

Parametry

entryPointScript
String

Cesta ke skriptu vstupního bodu, který má instance Node načíst a spustit.

projectPath
String

Kořenová cesta aktuálního projektu. Používá se při překladu cest modulu Node.js vzhledem ke kořenovému adresáři projektu.

watchFileExtensions
String[]

Přípony souborů, které by se měly sledovat v kořenovém adresáři projektu. Instance Node se automaticky vypne, pokud se změní odpovídající soubor.

commandLineArguments
String

Další argumenty příkazového řádku, které se mají předat Node.js instanci.

applicationStoppingToken
CancellationToken

Token, který označuje, kdy se hostitelská aplikace zastaví.

nodeOutputLogger
ILogger

Do ILogger kterého se má zapisovat stdout/stderr instance Node.js (a další informace protokolu).

environmentVars
IDictionary<String,String>

Proměnné prostředí, které se mají nastavit v procesu Node.js

invocationTimeoutMilliseconds
Int32

Maximální doba trvání v milisekundách počkejte na dokončení volání RPC.

launchWithDebugging
Boolean

Pokud ano, předá příznak procesu Node.js s oznámením, že má přijímat připojení ladicího programu V8.

debuggingPort
Int32

Pokud je ladění povolené, měl by proces Node.js naslouchat připojení ladicího programu V8 na tomto portu.

Platí pro