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)

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

public:
[System::Runtime::CompilerServices::Extension]
 static void UseSpaStaticFiles(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ applicationBuilder);
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.

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:
[System::Runtime::CompilerServices::Extension]
 static void UseSpaStaticFiles(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ applicationBuilder, Microsoft::AspNetCore::Builder::StaticFileOptions ^ options);
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