Partager via


TestServer Constructeurs

Définition

Surcharges

TestServer(IWebHostBuilder)

À utiliser avec IWebHostBuilder.

TestServer(IServiceProvider)

À utiliser avec IHostBuilder.

TestServer(IWebHostBuilder, IFeatureCollection)

À utiliser avec IWebHostBuilder.

TestServer(IServiceProvider, IFeatureCollection)

À utiliser avec IHostBuilder.

TestServer(IServiceProvider, IOptions<TestServerOptions>)

À utiliser avec IHostBuilder.

TestServer(IServiceProvider, IFeatureCollection, IOptions<TestServerOptions>)

À utiliser avec 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

À utiliser avec 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)

Paramètres

builder
IWebHostBuilder

S’applique à

TestServer(IServiceProvider)

Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs

À utiliser avec 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)

Paramètres

services
IServiceProvider

S’applique à

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

À utiliser avec 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)

Paramètres

builder
IWebHostBuilder
featureCollection
IFeatureCollection

S’applique à

TestServer(IServiceProvider, IFeatureCollection)

Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs

À utiliser avec 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)

Paramètres

services
IServiceProvider
featureCollection
IFeatureCollection

S’applique à

TestServer(IServiceProvider, IOptions<TestServerOptions>)

Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs

À utiliser avec 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))

Paramètres

services
IServiceProvider
optionsAccessor
IOptions<TestServerOptions>

S’applique à

TestServer(IServiceProvider, IFeatureCollection, IOptions<TestServerOptions>)

Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs
Source:
TestServer.cs

À utiliser avec 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))

Paramètres

services
IServiceProvider
featureCollection
IFeatureCollection
optionsAccessor
IOptions<TestServerOptions>

S’applique à