Udostępnij za pośrednictwem


WebHostBuilderSocketExtensions.UseSockets Metoda

Definicja

Przeciążenia

UseSockets(IWebHostBuilder)

Określ gniazda jako transport do użycia przez Kestrel.

UseSockets(IWebHostBuilder, Action<SocketTransportOptions>)

Określ gniazda jako transport do użycia przez Kestrel.

UseSockets(IWebHostBuilder)

Źródło:
WebHostBuilderSocketExtensions.cs
Źródło:
WebHostBuilderSocketExtensions.cs
Źródło:
WebHostBuilderSocketExtensions.cs

Określ gniazda jako transport do użycia przez 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

Parametry

hostBuilder
IWebHostBuilder

Program Microsoft.AspNetCore.Hosting.IWebHostBuilder do skonfigurowania.

Zwraca

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Dotyczy

UseSockets(IWebHostBuilder, Action<SocketTransportOptions>)

Źródło:
WebHostBuilderSocketExtensions.cs
Źródło:
WebHostBuilderSocketExtensions.cs
Źródło:
WebHostBuilderSocketExtensions.cs

Określ gniazda jako transport do użycia przez 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

Parametry

hostBuilder
IWebHostBuilder

Program Microsoft.AspNetCore.Hosting.IWebHostBuilder do skonfigurowania.

configureOptions
Action<SocketTransportOptions>

Wywołanie zwrotne do konfigurowania opcji transportu.

Zwraca

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Dotyczy