Partager via


WebHostBuilderSocketExtensions.UseSockets Méthode

Définition

Surcharges

UseSockets(IWebHostBuilder)

Spécifiez Sockets comme transport à utiliser par Kestrel.

UseSockets(IWebHostBuilder, Action<SocketTransportOptions>)

Spécifiez Sockets comme transport à utiliser par Kestrel.

UseSockets(IWebHostBuilder)

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

Spécifiez Sockets comme transport à utiliser par 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

Paramètres

hostBuilder
IWebHostBuilder

Microsoft.AspNetCore.Hosting.IWebHostBuilder à configurer.

Retours

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

S’applique à

UseSockets(IWebHostBuilder, Action<SocketTransportOptions>)

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

Spécifiez Sockets comme transport à utiliser par 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

Paramètres

hostBuilder
IWebHostBuilder

Microsoft.AspNetCore.Hosting.IWebHostBuilder à configurer.

configureOptions
Action<SocketTransportOptions>

Rappel pour configurer les options de transport.

Retours

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

S’applique à