Condividi tramite


HostingAbstractionsWebHostBuilderExtensions.UseServer Metodo

Definizione

Specificare il server da usare dall'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

Parametri

hostBuilder
IWebHostBuilder

Oggetto IWebHostBuilder da configurare.

server
IServer

Struttura IServer da utilizzare.

Restituisce

Oggetto IWebHostBuilder.

Si applica a