SpaProxyingExtensions.UseProxyToSpaDevelopmentServer Method

Definition

Overloads

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

Configures the application to forward incoming requests to a local Single Page Application (SPA) development server. This is only intended to be used during development. Do not enable this middleware in production applications.

UseProxyToSpaDevelopmentServer(ISpaBuilder, String)

Configures the application to forward incoming requests to a local Single Page Application (SPA) development server. This is only intended to be used during development. Do not enable this middleware in production applications.

UseProxyToSpaDevelopmentServer(ISpaBuilder, Uri)

Configures the application to forward incoming requests to a local Single Page Application (SPA) development server. This is only intended to be used during development. Do not enable this middleware in production applications.

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

Configures the application to forward incoming requests to a local Single Page Application (SPA) development server. This is only intended to be used during development. Do not enable this middleware in production applications.

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)))

Parameters

spaBuilder
ISpaBuilder

The ISpaBuilder.

baseUriTaskFactory
Func<Task<Uri>>

A callback that will be invoked on each request to supply a Task that resolves with the target base URI to which requests should be proxied.

Applies to

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

Configures the application to forward incoming requests to a local Single Page Application (SPA) development server. This is only intended to be used during development. Do not enable this middleware in production applications.

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)

Parameters

spaBuilder
ISpaBuilder

The ISpaBuilder.

baseUri
String

The target base URI to which requests should be proxied.

Applies to

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

Configures the application to forward incoming requests to a local Single Page Application (SPA) development server. This is only intended to be used during development. Do not enable this middleware in production applications.

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)

Parameters

spaBuilder
ISpaBuilder

The ISpaBuilder.

baseUri
Uri

The target base URI to which requests should be proxied.

Applies to