Compartir a través de


WebHostBuilderSocketExtensions.UseSockets Método

Definición

Sobrecargas

UseSockets(IWebHostBuilder)

Especifique Sockets como transporte que Kestrel va a usar.

UseSockets(IWebHostBuilder, Action<SocketTransportOptions>)

Especifique Sockets como transporte que Kestrel va a usar.

UseSockets(IWebHostBuilder)

Source:
WebHostBuilderSocketExtensions.cs
Source:
WebHostBuilderSocketExtensions.cs
Source:
WebHostBuilderSocketExtensions.cs

Especifique Sockets como transporte que Kestrel va a usar.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseSockets(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseSockets (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder);
static member UseSockets : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseSockets (hostBuilder As IWebHostBuilder) As IWebHostBuilder

Parámetros

hostBuilder
IWebHostBuilder

Microsoft.AspNetCore.Hosting.IWebHostBuilder que se va a configurar.

Devoluciones

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Se aplica a

UseSockets(IWebHostBuilder, Action<SocketTransportOptions>)

Source:
WebHostBuilderSocketExtensions.cs
Source:
WebHostBuilderSocketExtensions.cs
Source:
WebHostBuilderSocketExtensions.cs

Especifique Sockets como transporte que Kestrel va a usar.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseSockets(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::AspNetCore::Server::Kestrel::Transport::Sockets::SocketTransportOptions ^> ^ configureOptions);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseSockets (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions> configureOptions);
static member UseSockets : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseSockets (hostBuilder As IWebHostBuilder, configureOptions As Action(Of SocketTransportOptions)) As IWebHostBuilder

Parámetros

hostBuilder
IWebHostBuilder

Microsoft.AspNetCore.Hosting.IWebHostBuilder que se va a configurar.

configureOptions
Action<SocketTransportOptions>

Devolución de llamada para configurar las opciones de transporte.

Devoluciones

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Se aplica a