ISpaBuilder Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines a class that provides mechanisms for configuring the hosting of a Single Page Application (SPA) and attaching middleware.
public interface class ISpaBuilder
public interface ISpaBuilder
type ISpaBuilder = interface
Public Interface ISpaBuilder
Properties
ApplicationBuilder |
The IApplicationBuilder representing the middleware pipeline in which the SPA is being hosted. |
Options |
Describes configuration options for hosting a SPA. |
Extension Methods
UseSpaPrerendering(ISpaBuilder, Action<SpaPrerenderingOptions>) |
Obsolete.
Enables server-side prerendering middleware for a Single Page Application. |
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. |
UseAngularCliServer(ISpaBuilder, String) |
Handles requests by passing them through to an instance of the Angular CLI server. This means you can always serve up-to-date CLI-built resources without having to run the Angular CLI server manually. This feature should only be used in development. For production deployments, be sure not to enable the Angular CLI server. |
UseReactDevelopmentServer(ISpaBuilder, String) |
Handles requests by passing them through to an instance of the create-react-app server. This means you can always serve up-to-date CLI-built resources without having to run the create-react-app server manually. This feature should only be used in development. For production deployments, be sure not to enable the create-react-app server. |