共用方式為


NodeServicesOptionsExtensions.UseHttpHosting(NodeServicesOptions) 方法

定義

警告

Use Microsoft.AspNetCore.SpaServices.Extensions

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

public:
[System::Runtime::CompilerServices::Extension]
 static void UseHttpHosting(Microsoft::AspNetCore::NodeServices::NodeServicesOptions ^ options);
public static void UseHttpHosting (this Microsoft.AspNetCore.NodeServices.NodeServicesOptions options);
[System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")]
public static void UseHttpHosting (this Microsoft.AspNetCore.NodeServices.NodeServicesOptions options);
static member UseHttpHosting : Microsoft.AspNetCore.NodeServices.NodeServicesOptions -> unit
[<System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")>]
static member UseHttpHosting : Microsoft.AspNetCore.NodeServices.NodeServicesOptions -> unit
<Extension()>
Public Sub UseHttpHosting (options As NodeServicesOptions)

參數

屬性

適用於