PrerenderingServiceCollectionExtensions.AddSpaPrerenderer(IServiceCollection) PrerenderingServiceCollectionExtensions.AddSpaPrerenderer(IServiceCollection) PrerenderingServiceCollectionExtensions.AddSpaPrerenderer(IServiceCollection) PrerenderingServiceCollectionExtensions.AddSpaPrerenderer(IServiceCollection) Method

Definition

Warning

This API is now obsolete.

Configures the dependency injection system to supply an implementation of ISpaPrerenderer.

public:
[System::Runtime::CompilerServices::Extension]
 static void AddSpaPrerenderer(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
<Extension()>
Public Sub AddSpaPrerenderer (serviceCollection As IServiceCollection)

Parameters

serviceCollection
Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection

The Microsoft.Extensions.DependencyInjection.IServiceCollection.

Applies to