OutOfProcessNodeInstance Kelas

Definisi

Perhatian

Use Microsoft.AspNetCore.SpaServices.Extensions

Kelas yang bertanggung jawab untuk meluncurkan proses anak Node pada komputer lokal, menentukan kapan siap untuk menerima pemanggilan, mendeteksi apakah itu mati sendiri, dan akhirnya mengakhirinya dengan pembuangan.

Kelas dasar abstrak ini menggunakan aliran input/output dari proses anak untuk melakukan jabat tangan sederhana untuk menentukan kapan proses anak siap menerima pemanggilan. Ini agnostik untuk mekanisme yang digunakan kelas turunan untuk benar-benar melakukan pemanggilan (misalnya, mereka dapat menggunakan HTTP-RPC, atau protokol TCP biner, atau mekanisme jenis RPC lainnya).

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
Warisan
OutOfProcessNodeInstance
Atribut
Penerapan

Konstruktor

OutOfProcessNodeInstance(String, String, String[], String, CancellationToken, ILogger, IDictionary<String,String>, Int32, Boolean, Int32)
Kedaluwarsa.

Membuat instans baru .OutOfProcessNodeInstance

Bidang

OutputLogger
Kedaluwarsa.

ILogger stdout/stderr instans Node.js sedang dialihkan.

Metode

Dispose()
Kedaluwarsa.

Buang instans ini.

Dispose(Boolean)
Kedaluwarsa.

Membuang instans.

Finalize()
Kedaluwarsa.

Menerapkan bagian finalisasi dari pola IDisposable dengan memanggil Dispose(false).

InvokeExportAsync<T>(CancellationToken, String, String, Object[])
Kedaluwarsa.

Secara asinkron memanggil kode dalam instans Node.js.

InvokeExportAsync<T>(NodeInvocationInfo, CancellationToken)
Kedaluwarsa.

Secara asinkron memanggil kode dalam instans Node.js.

OnErrorDataReceived(String)
Kedaluwarsa.

Metode virtual dipanggil setiap kali proses Node.js memancarkan garis ke stderr-nya.

OnOutputDataReceived(String)
Kedaluwarsa.

Metode virtual dipanggil setiap kali proses Node.js memancarkan garis ke stdout-nya.

PrepareNodeProcessStartInfo(String, String, String, IDictionary<String,String>, Boolean, Int32)
Kedaluwarsa.

Mengonfigurasi instans yang ProcessStartInfo menjelaskan cara meluncurkan proses Node.js.

Berlaku untuk

Lihat juga