PrerenderingServiceCollectionExtensions.AddSpaPrerenderer 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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
- 屬性