Partilhar via


PrerenderingServiceCollectionExtensions.AddSpaPrerenderer Método

Definição

Cuidado

Use Microsoft.AspNetCore.SpaServices.Extensions

Configura o sistema de injeção de dependência para fornecer uma implementação de 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)

Parâmetros

serviceCollection
IServiceCollection

O IServiceCollection.

Atributos

Aplica-se a