OutOfProcessNodeInstance 類別

定義

警告

Use Microsoft.AspNetCore.SpaServices.Extensions

類別,負責在本機電腦上啟動 Node 子進程、判斷何時準備好接受調用、偵測它是否自行終止,最後在處置時終止它。

這個抽象基類會使用子進程的輸入/輸出資料流程來執行簡單的交握,以判斷子進程何時準備好接受調用。 這與衍生類別用來實際執行 (調用的機制無關,例如,它們可以使用 HTTP-RPC 或二進位 TCP 通訊協定,或任何其他 RPC 類型機制) 。

public ref class OutOfProcessNodeInstance abstract : IDisposable, Microsoft::AspNetCore::NodeServices::HostingModels::INodeInstance
public abstract class OutOfProcessNodeInstance : IDisposable, Microsoft.AspNetCore.NodeServices.HostingModels.INodeInstance
[System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")]
public abstract class OutOfProcessNodeInstance : IDisposable, Microsoft.AspNetCore.NodeServices.HostingModels.INodeInstance
type OutOfProcessNodeInstance = class
    interface INodeInstance
    interface IDisposable
[<System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")>]
type OutOfProcessNodeInstance = class
    interface INodeInstance
    interface IDisposable
Public MustInherit Class OutOfProcessNodeInstance
Implements IDisposable, INodeInstance
繼承
OutOfProcessNodeInstance
屬性
實作

建構函式

OutOfProcessNodeInstance(String, String, String[], String, CancellationToken, ILogger, IDictionary<String,String>, Int32, Boolean, Int32)
已淘汰.

建立 OutOfProcessNodeInstance 的新執行個體。

欄位

OutputLogger
已淘汰.

ILogger 重新導向 Node.js 實例 stdout/stderr 的 。

方法

Dispose()
已淘汰.

處置此執行個體。

Dispose(Boolean)
已淘汰.

處置 實例。

Finalize()
已淘汰.

藉由呼叫 Dispose (false) ,實作 IDisposable 模式的最終部分。

InvokeExportAsync<T>(CancellationToken, String, String, Object[])
已淘汰.

以非同步方式叫用 Node.js 實例中的程式碼。

InvokeExportAsync<T>(NodeInvocationInfo, CancellationToken)
已淘汰.

以非同步方式叫用 Node.js 實例中的程式碼。

OnErrorDataReceived(String)
已淘汰.

每當 Node.js 進程發出行至其 stderr 時,就會叫用虛擬方法。

OnOutputDataReceived(String)
已淘汰.

每當 Node.js 進程發出行至其 stdout 時,就會叫用虛擬方法。

PrepareNodeProcessStartInfo(String, String, String, IDictionary<String,String>, Boolean, Int32)
已淘汰.

設定 ProcessStartInfo 實例,描述如何啟動 Node.js 程式。

適用於

另請參閱