TestServer 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
TestServer(IWebHostBuilder) |
用于 IWebHostBuilder。 |
TestServer(IServiceProvider) |
用于 IHostBuilder。 |
TestServer(IWebHostBuilder, IFeatureCollection) |
用于 IWebHostBuilder。 |
TestServer(IServiceProvider, IFeatureCollection) |
用于 IHostBuilder。 |
TestServer(IServiceProvider, IOptions<TestServerOptions>) |
用于 IHostBuilder。 |
TestServer(IServiceProvider, IFeatureCollection, IOptions<TestServerOptions>) |
用于 IHostBuilder。 |
TestServer(IWebHostBuilder)
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
用于 IWebHostBuilder。
public:
TestServer(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ builder);
public TestServer (Microsoft.AspNetCore.Hosting.IWebHostBuilder builder);
new Microsoft.AspNetCore.TestHost.TestServer : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> Microsoft.AspNetCore.TestHost.TestServer
Public Sub New (builder As IWebHostBuilder)
参数
- builder
- IWebHostBuilder
适用于
TestServer(IServiceProvider)
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
用于 IHostBuilder。
public:
TestServer(IServiceProvider ^ services);
public TestServer (IServiceProvider services);
new Microsoft.AspNetCore.TestHost.TestServer : IServiceProvider -> Microsoft.AspNetCore.TestHost.TestServer
Public Sub New (services As IServiceProvider)
参数
- services
- IServiceProvider
适用于
TestServer(IWebHostBuilder, IFeatureCollection)
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
用于 IWebHostBuilder。
public:
TestServer(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ builder, Microsoft::AspNetCore::Http::Features::IFeatureCollection ^ featureCollection);
public TestServer (Microsoft.AspNetCore.Hosting.IWebHostBuilder builder, Microsoft.AspNetCore.Http.Features.IFeatureCollection featureCollection);
new Microsoft.AspNetCore.TestHost.TestServer : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Microsoft.AspNetCore.Http.Features.IFeatureCollection -> Microsoft.AspNetCore.TestHost.TestServer
Public Sub New (builder As IWebHostBuilder, featureCollection As IFeatureCollection)
参数
- builder
- IWebHostBuilder
- featureCollection
- IFeatureCollection
适用于
TestServer(IServiceProvider, IFeatureCollection)
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
用于 IHostBuilder。
public:
TestServer(IServiceProvider ^ services, Microsoft::AspNetCore::Http::Features::IFeatureCollection ^ featureCollection);
public TestServer (IServiceProvider services, Microsoft.AspNetCore.Http.Features.IFeatureCollection featureCollection);
new Microsoft.AspNetCore.TestHost.TestServer : IServiceProvider * Microsoft.AspNetCore.Http.Features.IFeatureCollection -> Microsoft.AspNetCore.TestHost.TestServer
Public Sub New (services As IServiceProvider, featureCollection As IFeatureCollection)
参数
- services
- IServiceProvider
- featureCollection
- IFeatureCollection
适用于
TestServer(IServiceProvider, IOptions<TestServerOptions>)
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
用于 IHostBuilder。
public TestServer (IServiceProvider services, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.TestHost.TestServerOptions> optionsAccessor);
new Microsoft.AspNetCore.TestHost.TestServer : IServiceProvider * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.TestHost.TestServerOptions> -> Microsoft.AspNetCore.TestHost.TestServer
Public Sub New (services As IServiceProvider, optionsAccessor As IOptions(Of TestServerOptions))
参数
- services
- IServiceProvider
- optionsAccessor
- IOptions<TestServerOptions>
适用于
TestServer(IServiceProvider, IFeatureCollection, IOptions<TestServerOptions>)
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
- Source:
- TestServer.cs
用于 IHostBuilder。
public TestServer (IServiceProvider services, Microsoft.AspNetCore.Http.Features.IFeatureCollection featureCollection, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.TestHost.TestServerOptions> optionsAccessor);
new Microsoft.AspNetCore.TestHost.TestServer : IServiceProvider * Microsoft.AspNetCore.Http.Features.IFeatureCollection * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.TestHost.TestServerOptions> -> Microsoft.AspNetCore.TestHost.TestServer
Public Sub New (services As IServiceProvider, featureCollection As IFeatureCollection, optionsAccessor As IOptions(Of TestServerOptions))
参数
- services
- IServiceProvider
- featureCollection
- IFeatureCollection
- optionsAccessor
- IOptions<TestServerOptions>