SpaProxyingExtensions.UseProxyToSpaDevelopmentServer 方法

定义

重载

UseProxyToSpaDevelopmentServer(ISpaBuilder, Func<Task<Uri>>)

将应用程序配置为将传入请求转发到本地单页应用程序 (SPA) 开发服务器。 这仅用于开发期间。 请勿在生产应用程序中启用此中间件。

UseProxyToSpaDevelopmentServer(ISpaBuilder, String)

将应用程序配置为将传入请求转发到本地单页应用程序 (SPA) 开发服务器。 这仅用于开发期间。 请勿在生产应用程序中启用此中间件。

UseProxyToSpaDevelopmentServer(ISpaBuilder, Uri)

将应用程序配置为将传入请求转发到本地单页应用程序 (SPA) 开发服务器。 这仅用于开发期间。 请勿在生产应用程序中启用此中间件。

UseProxyToSpaDevelopmentServer(ISpaBuilder, Func<Task<Uri>>)

Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs

将应用程序配置为将传入请求转发到本地单页应用程序 (SPA) 开发服务器。 这仅用于开发期间。 请勿在生产应用程序中启用此中间件。

public:
[System::Runtime::CompilerServices::Extension]
 static void UseProxyToSpaDevelopmentServer(Microsoft::AspNetCore::SpaServices::ISpaBuilder ^ spaBuilder, Func<System::Threading::Tasks::Task<Uri ^> ^> ^ baseUriTaskFactory);
public static void UseProxyToSpaDevelopmentServer (this Microsoft.AspNetCore.SpaServices.ISpaBuilder spaBuilder, Func<System.Threading.Tasks.Task<Uri>> baseUriTaskFactory);
static member UseProxyToSpaDevelopmentServer : Microsoft.AspNetCore.SpaServices.ISpaBuilder * Func<System.Threading.Tasks.Task<Uri>> -> unit
<Extension()>
Public Sub UseProxyToSpaDevelopmentServer (spaBuilder As ISpaBuilder, baseUriTaskFactory As Func(Of Task(Of Uri)))

参数

spaBuilder
ISpaBuilder

ISpaBuilder

baseUriTaskFactory
Func<Task<Uri>>

将在每个请求上调用的回调,以提供一个 Task ,该回调使用应代理请求的目标基 URI 解析。

适用于

UseProxyToSpaDevelopmentServer(ISpaBuilder, String)

Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs

将应用程序配置为将传入请求转发到本地单页应用程序 (SPA) 开发服务器。 这仅用于开发期间。 请勿在生产应用程序中启用此中间件。

public:
[System::Runtime::CompilerServices::Extension]
 static void UseProxyToSpaDevelopmentServer(Microsoft::AspNetCore::SpaServices::ISpaBuilder ^ spaBuilder, System::String ^ baseUri);
public static void UseProxyToSpaDevelopmentServer (this Microsoft.AspNetCore.SpaServices.ISpaBuilder spaBuilder, string baseUri);
static member UseProxyToSpaDevelopmentServer : Microsoft.AspNetCore.SpaServices.ISpaBuilder * string -> unit
<Extension()>
Public Sub UseProxyToSpaDevelopmentServer (spaBuilder As ISpaBuilder, baseUri As String)

参数

spaBuilder
ISpaBuilder

ISpaBuilder

baseUri
String

请求应代理的目标基 URI。

适用于

UseProxyToSpaDevelopmentServer(ISpaBuilder, Uri)

Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs
Source:
SpaProxyingExtensions.cs

将应用程序配置为将传入请求转发到本地单页应用程序 (SPA) 开发服务器。 这仅用于开发期间。 请勿在生产应用程序中启用此中间件。

public:
[System::Runtime::CompilerServices::Extension]
 static void UseProxyToSpaDevelopmentServer(Microsoft::AspNetCore::SpaServices::ISpaBuilder ^ spaBuilder, Uri ^ baseUri);
public static void UseProxyToSpaDevelopmentServer (this Microsoft.AspNetCore.SpaServices.ISpaBuilder spaBuilder, Uri baseUri);
static member UseProxyToSpaDevelopmentServer : Microsoft.AspNetCore.SpaServices.ISpaBuilder * Uri -> unit
<Extension()>
Public Sub UseProxyToSpaDevelopmentServer (spaBuilder As ISpaBuilder, baseUri As Uri)

参数

spaBuilder
ISpaBuilder

ISpaBuilder

baseUri
Uri

请求应代理的目标基 URI。

适用于