Compartir a través de


TestServer Constructores

Definición

Sobrecargas

TestServer(IWebHostBuilder)

Para su uso con IWebHostBuilder.

TestServer(IServiceProvider)

Para su uso con IHostBuilder.

TestServer(IWebHostBuilder, IFeatureCollection)

Para su uso con IWebHostBuilder.

TestServer(IServiceProvider, IFeatureCollection)

Para su uso con IHostBuilder.

TestServer(IServiceProvider, IOptions<TestServerOptions>)

Para su uso con IHostBuilder.

TestServer(IServiceProvider, IFeatureCollection, IOptions<TestServerOptions>)

Para su uso con 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

Para su uso con 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)

Parámetros

builder
IWebHostBuilder

Se aplica a

TestServer(IServiceProvider)

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

Para su uso con 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)

Parámetros

services
IServiceProvider

Se aplica a

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

Para su uso con 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)

Parámetros

builder
IWebHostBuilder
featureCollection
IFeatureCollection

Se aplica a

TestServer(IServiceProvider, IFeatureCollection)

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

Para su uso con 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)

Parámetros

services
IServiceProvider
featureCollection
IFeatureCollection

Se aplica a

TestServer(IServiceProvider, IOptions<TestServerOptions>)

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

Para su uso con 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))

Parámetros

services
IServiceProvider
optionsAccessor
IOptions<TestServerOptions>

Se aplica a

TestServer(IServiceProvider, IFeatureCollection, IOptions<TestServerOptions>)

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

Para su uso con 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))

Parámetros

services
IServiceProvider
featureCollection
IFeatureCollection
optionsAccessor
IOptions<TestServerOptions>

Se aplica a