共用方式為


PrerenderingServiceCollectionExtensions.AddSpaPrerenderer 方法

定義

警告

Use Microsoft.AspNetCore.SpaServices.Extensions

設定相依性插入系統以提供 的實作 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)

參數

serviceCollection
IServiceCollection

IServiceCollection

屬性

適用於