ServiceFakesWebHostExtensions.UseFakeStartup(IWebHostBuilder) 方法

定义

添加一个空的 Startup 类以满足 ASP.NET 检查。

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseFakeStartup (this Microsoft.AspNetCore.Hosting.IWebHostBuilder builder);
static member UseFakeStartup : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseFakeStartup (builder As IWebHostBuilder) As IWebHostBuilder

参数

builder
IWebHostBuilder

一个 IWebHostBuilder 实例。

返回

builder 的值。

适用于