WebHostBuilderSocketExtensions.UseSockets Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
UseSockets(IWebHostBuilder) |
Specificare Socket come trasporto da usare da Kestrel. |
UseSockets(IWebHostBuilder, Action<SocketTransportOptions>) |
Specificare Socket come trasporto da usare da Kestrel. |
UseSockets(IWebHostBuilder)
Specificare Socket come trasporto da usare da 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
Parametri
- hostBuilder
- IWebHostBuilder
Microsoft.AspNetCore.Hosting.IWebHostBuilder da configurare.
Restituisce
The Microsoft.AspNetCore.Hosting.IWebHostBuilder.
Si applica a
UseSockets(IWebHostBuilder, Action<SocketTransportOptions>)
Specificare Socket come trasporto da usare da 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
Parametri
- hostBuilder
- IWebHostBuilder
Microsoft.AspNetCore.Hosting.IWebHostBuilder da configurare.
- configureOptions
- Action<SocketTransportOptions>
Callback per configurare le opzioni di trasporto.
Restituisce
The Microsoft.AspNetCore.Hosting.IWebHostBuilder.