다음을 통해 공유


WebHostBuilderSocketExtensions.UseSockets 메서드

정의

오버로드

UseSockets(IWebHostBuilder)

Kestrel에서 사용할 전송으로 소켓을 지정합니다.

UseSockets(IWebHostBuilder, Action<SocketTransportOptions>)

Kestrel에서 사용할 전송으로 소켓을 지정합니다.

UseSockets(IWebHostBuilder)

Source:
WebHostBuilderSocketExtensions.cs
Source:
WebHostBuilderSocketExtensions.cs
Source:
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>)

Source:
WebHostBuilderSocketExtensions.cs
Source:
WebHostBuilderSocketExtensions.cs
Source:
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.

적용 대상