SpaStaticFilesExtensions.UseSpaStaticFiles Method

Definition

Overloads

UseSpaStaticFiles(IApplicationBuilder)

Configures the application to serve static files for a Single Page Application (SPA). The files will be located using the registered ISpaStaticFileProvider service.

UseSpaStaticFiles(IApplicationBuilder, StaticFileOptions)

Configures the application to serve static files for a Single Page Application (SPA). The files will be located using the registered ISpaStaticFileProvider service.

UseSpaStaticFiles(IApplicationBuilder)

Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs

Configures the application to serve static files for a Single Page Application (SPA). The files will be located using the registered ISpaStaticFileProvider service.

public static void UseSpaStaticFiles (this Microsoft.AspNetCore.Builder.IApplicationBuilder applicationBuilder);
static member UseSpaStaticFiles : Microsoft.AspNetCore.Builder.IApplicationBuilder -> unit
<Extension()>
Public Sub UseSpaStaticFiles (applicationBuilder As IApplicationBuilder)

Parameters

applicationBuilder
IApplicationBuilder

The IApplicationBuilder.

Applies to

UseSpaStaticFiles(IApplicationBuilder, StaticFileOptions)

Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs

Configures the application to serve static files for a Single Page Application (SPA). The files will be located using the registered ISpaStaticFileProvider service.

public static void UseSpaStaticFiles (this Microsoft.AspNetCore.Builder.IApplicationBuilder applicationBuilder, Microsoft.AspNetCore.Builder.StaticFileOptions options);
static member UseSpaStaticFiles : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.StaticFileOptions -> unit
<Extension()>
Public Sub UseSpaStaticFiles (applicationBuilder As IApplicationBuilder, options As StaticFileOptions)

Parameters

applicationBuilder
IApplicationBuilder

The IApplicationBuilder.

options
StaticFileOptions

Specifies options for serving the static files.

Applies to