Поделиться через


WebHostBuilderSocketExtensions.UseSockets Метод

Определение

Перегрузки

UseSockets(IWebHostBuilder)

Укажите сокеты в качестве транспорта, используемого Kestrel.

UseSockets(IWebHostBuilder, Action<SocketTransportOptions>)

Укажите сокеты в качестве транспорта, используемого Kestrel.

UseSockets(IWebHostBuilder)

Исходный код:
WebHostBuilderSocketExtensions.cs
Исходный код:
WebHostBuilderSocketExtensions.cs
Исходный код:
WebHostBuilderSocketExtensions.cs

Укажите сокеты в качестве транспорта, используемого 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

Параметры

hostBuilder
IWebHostBuilder

Microsoft.AspNetCore.Hosting.IWebHostBuilder для настройки.

Возвращаемое значение

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Применяется к

UseSockets(IWebHostBuilder, Action<SocketTransportOptions>)

Исходный код:
WebHostBuilderSocketExtensions.cs
Исходный код:
WebHostBuilderSocketExtensions.cs
Исходный код:
WebHostBuilderSocketExtensions.cs

Укажите сокеты в качестве транспорта, используемого 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

Параметры

hostBuilder
IWebHostBuilder

Microsoft.AspNetCore.Hosting.IWebHostBuilder для настройки.

configureOptions
Action<SocketTransportOptions>

Обратный вызов для настройки параметров транспорта.

Возвращаемое значение

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Применяется к