SpaProxyingExtensions.UseProxyToSpaDevelopmentServer 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
适用于
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
- 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
- baseUri
- Uri
请求应代理的目标基 URI。