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

노드 instance 로드하고 실행해야 하는 진입점 스크립트의 경로입니다.

projectPath
String

현재 프로젝트의 루트 경로입니다. 이는 프로젝트 루트를 기준으로 Node.js 모듈 경로를 확인할 때 사용됩니다.

watchFileExtensions
String[]

프로젝트 루트 내에서 확인해야 하는 파일 이름 확장명입니다. 일치하는 파일이 변경되면 노드 instance 자동으로 종료됩니다.

commandLineArguments
String

Node.js instance 전달할 추가 명령줄 인수입니다.

applicationStoppingToken
CancellationToken

호스트 애플리케이션이 중지되는 시기를 나타내는 토큰입니다.

nodeOutputLogger
ILogger

ILoggerNode.js instance stdout/stderr(및 기타 로그 정보)를 작성할 입니다.

environmentVars
IDictionary<String,String>

Node.js 프로세스에서 설정할 환경 변수입니다.

invocationTimeoutMilliseconds
Int32

RPC 호출이 완료되기를 기다리는 최대 기간(밀리초)입니다.

launchWithDebugging
Boolean

true이면 플래그를 Node.js 프로세스에 전달하여 V8 디버거 연결을 수락하도록 지시합니다.

debuggingPort
Int32

디버깅을 사용하는 경우 Node.js 프로세스는 이 포트에서 V8 디버거 연결을 수신 대기해야 합니다.

적용 대상