NodeServicesOptions 類別

定義

警告

Use Microsoft.AspNetCore.SpaServices.Extensions

描述用來設定 INodeServices 實例的選項。

public ref class NodeServicesOptions
public class NodeServicesOptions
[System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")]
public class NodeServicesOptions
type NodeServicesOptions = class
[<System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")>]
type NodeServicesOptions = class
Public Class NodeServicesOptions
繼承
NodeServicesOptions
屬性

建構函式

NodeServicesOptions(IServiceProvider)
已淘汰.

建立 NodeServicesOptions 的新執行個體。

屬性

ApplicationStoppingToken
已淘汰.

表示主應用程式何時停止的權杖。

DebuggingPort
已淘汰.

如果 LaunchWithDebugging 為 true,Node.js 實例會接聽此埠上的 V8 偵錯工具連線。

EnvironmentVariables
已淘汰.

如果設定,請使用指定的環境變數啟動 Node.js 實例。

InvocationTimeoutMilliseconds
已淘汰.

指定 .NET 程式碼應該等候 Node.js RPC 呼叫傳回的最大持續時間,以毫秒為單位。

LaunchWithDebugging
已淘汰.

如果為 true,Node.js 實例將會接受傳入的 V8 偵錯工具連線 (,例如從 node-inspector) 。

NodeInstanceFactory
已淘汰.

指定如何建構 Node.js 實例。 會 INodeInstance 封裝如何啟動和通訊實例 Node.js 的所有詳細資料。 如果先前的實例已終止 (,則會自動建立新的 INodeInstance ,例如,因為原始程式檔已變更) 。

NodeInstanceOutputLogger
已淘汰.

Node.js 實例的 stdout/stderr 將會重新導向至這個 ILogger

ProjectPath
已淘汰.

如果設定,則會覆寫應用程式根目錄的路徑。 尋找相對於您專案的 Node.js 模組時,會使用此路徑。

WatchFileExtensions
已淘汰.

如果設定,Node.js 實例應該會在專案內磁片上的任何相符檔案變更時重新開機。

擴充方法

UseHttpHosting(NodeServicesOptions)
已淘汰.

設定 INodeServices 服務,讓它使用跨進程 Node.js 實例,並透過 HTTP 執行 RPC 呼叫。

適用於