SpaStaticFilesExtensions.UseSpaStaticFiles SpaStaticFilesExtensions.UseSpaStaticFiles SpaStaticFilesExtensions.UseSpaStaticFiles Method

Definition

Overloads

UseSpaStaticFiles(IApplicationBuilder) UseSpaStaticFiles(IApplicationBuilder) 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) UseSpaStaticFiles(IApplicationBuilder, StaticFileOptions) 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) UseSpaStaticFiles(IApplicationBuilder) 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.

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

UseSpaStaticFiles(IApplicationBuilder, StaticFileOptions) UseSpaStaticFiles(IApplicationBuilder, StaticFileOptions) 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.

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

options
StaticFileOptions StaticFileOptions StaticFileOptions

Specifies options for serving the static files.

Applies to