OutOfProcessNodeInstance Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new instance of 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)
Parameters
- entryPointScript
- String
The path to the entry point script that the Node instance should load and execute.
- projectPath
- String
The root path of the current project. This is used when resolving Node.js module paths relative to the project root.
- watchFileExtensions
- String[]
The filename extensions that should be watched within the project root. The Node instance will automatically shut itself down if any matching file changes.
- commandLineArguments
- String
Additional command-line arguments to be passed to the Node.js instance.
- applicationStoppingToken
- CancellationToken
A token that indicates when the host application is stopping.
- nodeOutputLogger
- ILogger
The ILogger to which the Node.js instance's stdout/stderr (and other log information) should be written.
- environmentVars
- IDictionary<String,String>
Environment variables to be set on the Node.js process.
- invocationTimeoutMilliseconds
- Int32
The maximum duration, in milliseconds, to wait for RPC calls to complete.
- launchWithDebugging
- Boolean
If true, passes a flag to the Node.js process telling it to accept V8 debugger connections.
- debuggingPort
- Int32
If debugging is enabled, the Node.js process should listen for V8 debugger connections on this port.