Freigeben über


WebHostBuilderSocketExtensions.UseSockets Methode

Definition

Überlädt

UseSockets(IWebHostBuilder)

Geben Sie Sockets als Transport an, der von Kestrel verwendet werden soll.

UseSockets(IWebHostBuilder, Action<SocketTransportOptions>)

Geben Sie Sockets als Transport an, der von Kestrel verwendet werden soll.

UseSockets(IWebHostBuilder)

Quelle:
WebHostBuilderSocketExtensions.cs
Quelle:
WebHostBuilderSocketExtensions.cs
Quelle:
WebHostBuilderSocketExtensions.cs

Geben Sie Sockets als Transport an, der von Kestrel verwendet werden soll.

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

Parameter

hostBuilder
IWebHostBuilder

Der zu konfigurierende Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Gibt zurück

Der Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Gilt für:

UseSockets(IWebHostBuilder, Action<SocketTransportOptions>)

Quelle:
WebHostBuilderSocketExtensions.cs
Quelle:
WebHostBuilderSocketExtensions.cs
Quelle:
WebHostBuilderSocketExtensions.cs

Geben Sie Sockets als Transport an, der von Kestrel verwendet werden soll.

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

Parameter

hostBuilder
IWebHostBuilder

Der zu konfigurierende Microsoft.AspNetCore.Hosting.IWebHostBuilder.

configureOptions
Action<SocketTransportOptions>

Ein Rückruf zum Konfigurieren von Transportoptionen.

Gibt zurück

Der Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Gilt für: