PrerenderingServiceCollectionExtensions.AddSpaPrerenderer Method
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.
Caution
Use Microsoft.AspNetCore.SpaServices.Extensions
Configures the dependency injection system to supply an implementation of ISpaPrerenderer.
public static void AddSpaPrerenderer (this Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection);
[System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")]
public static void AddSpaPrerenderer (this Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection);
static member AddSpaPrerenderer : Microsoft.Extensions.DependencyInjection.IServiceCollection -> unit
[<System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")>]
static member AddSpaPrerenderer : Microsoft.Extensions.DependencyInjection.IServiceCollection -> unit
<Extension()>
Public Sub AddSpaPrerenderer (serviceCollection As IServiceCollection)
Parameters
- serviceCollection
- IServiceCollection
The IServiceCollection.
- Attributes