WebHostBuilderSocketExtensions.UseSockets Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
UseSockets(IWebHostBuilder) |
Especifique Soquetes como o transporte a ser usado pelo Kestrel. |
UseSockets(IWebHostBuilder, Action<SocketTransportOptions>) |
Especifique Soquetes como o transporte a ser usado pelo Kestrel. |
UseSockets(IWebHostBuilder)
Especifique Soquetes como o transporte a ser usado pelo Kestrel.
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
O Microsoft.AspNetCore.Hosting.IWebHostBuilder a ser configurado.
Retornos
O Microsoft.AspNetCore.Hosting.IWebHostBuilder.
Aplica-se a
UseSockets(IWebHostBuilder, Action<SocketTransportOptions>)
Especifique Soquetes como o transporte a ser usado pelo Kestrel.
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
O Microsoft.AspNetCore.Hosting.IWebHostBuilder a ser configurado.
- configureOptions
- Action<SocketTransportOptions>
Um retorno de chamada para configurar opções de transporte.
Retornos
O Microsoft.AspNetCore.Hosting.IWebHostBuilder.