WebHostBuilderSocketExtensions.UseSockets WebHostBuilderSocketExtensions.UseSockets WebHostBuilderSocketExtensions.UseSockets WebHostBuilderSocketExtensions.UseSockets Method

Definition

Overloads

UseSockets(IWebHostBuilder) UseSockets(IWebHostBuilder) UseSockets(IWebHostBuilder) UseSockets(IWebHostBuilder)

Specify Sockets as the transport to be used by Kestrel.

UseSockets(IWebHostBuilder, Action<SocketTransportOptions>) UseSockets(IWebHostBuilder, Action<SocketTransportOptions>) UseSockets(IWebHostBuilder, Action<SocketTransportOptions>) UseSockets(IWebHostBuilder, Action<SocketTransportOptions>)

Specify Sockets as the transport to be used by Kestrel.

UseSockets(IWebHostBuilder) UseSockets(IWebHostBuilder) UseSockets(IWebHostBuilder) UseSockets(IWebHostBuilder)

Specify Sockets as the transport to be used by 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

Parameters

hostBuilder
IWebHostBuilder IWebHostBuilder IWebHostBuilder IWebHostBuilder

The Microsoft.AspNetCore.Hosting.IWebHostBuilder to configure.

Returns

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

UseSockets(IWebHostBuilder, Action<SocketTransportOptions>) UseSockets(IWebHostBuilder, Action<SocketTransportOptions>) UseSockets(IWebHostBuilder, Action<SocketTransportOptions>) UseSockets(IWebHostBuilder, Action<SocketTransportOptions>)

Specify Sockets as the transport to be used by 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

Parameters

hostBuilder
IWebHostBuilder IWebHostBuilder IWebHostBuilder IWebHostBuilder

The Microsoft.AspNetCore.Hosting.IWebHostBuilder to configure.

configureOptions
Action<SocketTransportOptions>

A callback to configure Libuv options.

Returns

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Applies to