Compartir a través de


HostingAbstractionsWebHostBuilderExtensions.UseServer Método

Definición

Especifique el servidor que va a usar el host web.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseServer(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Microsoft::AspNetCore::Hosting::Server::IServer ^ server);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseServer (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Microsoft.AspNetCore.Hosting.Server.IServer server);
static member UseServer : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Microsoft.AspNetCore.Hosting.Server.IServer -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseServer (hostBuilder As IWebHostBuilder, server As IServer) As IWebHostBuilder

Parámetros

hostBuilder
IWebHostBuilder

El objeto IWebHostBuilder que se va a configurar.

server
IServer

IServer que se va a utilizar.

Devoluciones

IWebHostBuilder.

Se aplica a