SpaStaticFilesExtensions.AddSpaStaticFiles(IServiceCollection, Action<SpaStaticFilesOptions>) SpaStaticFilesExtensions.AddSpaStaticFiles(IServiceCollection, Action<SpaStaticFilesOptions>) SpaStaticFilesExtensions.AddSpaStaticFiles(IServiceCollection, Action<SpaStaticFilesOptions>) Method

Definition

Registers an ISpaStaticFileProvider service that can provide static files to be served for a Single Page Application (SPA).

public static void AddSpaStaticFiles (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.SpaServices.StaticFiles.SpaStaticFilesOptions> configuration = null);
static member AddSpaStaticFiles : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.SpaServices.StaticFiles.SpaStaticFilesOptions> -> unit
<Extension()>
Public Sub AddSpaStaticFiles (services As IServiceCollection, Optional configuration As Action(Of SpaStaticFilesOptions) = null)

Parameters

configuration
Action<SpaStaticFilesOptions>

If specified, this callback will be invoked to set additional configuration options.

Applies to