WebHostBuilderNamedPipeExtensions.UseNamedPipes 方法

定义

重载

UseNamedPipes(IWebHostBuilder)

将命名管道指定为 Kestrel 要使用的传输。

UseNamedPipes(IWebHostBuilder, Action<NamedPipeTransportOptions>)

将命名管道指定为 Kestrel 要使用的传输。

UseNamedPipes(IWebHostBuilder)

Source:
WebHostBuilderNamedPipeExtensions.cs

将命名管道指定为 Kestrel 要使用的传输。

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseNamedPipes (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder);
static member UseNamedPipes : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseNamedPipes (hostBuilder As IWebHostBuilder) As IWebHostBuilder

参数

hostBuilder
IWebHostBuilder

要配置的 IWebHostBuilder

返回

IWebHostBuilder

适用于

UseNamedPipes(IWebHostBuilder, Action<NamedPipeTransportOptions>)

Source:
WebHostBuilderNamedPipeExtensions.cs

将命名管道指定为 Kestrel 要使用的传输。

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseNamedPipes (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes.NamedPipeTransportOptions> configureOptions);
static member UseNamedPipes : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes.NamedPipeTransportOptions> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseNamedPipes (hostBuilder As IWebHostBuilder, configureOptions As Action(Of NamedPipeTransportOptions)) As IWebHostBuilder

参数

hostBuilder
IWebHostBuilder

要配置的 IWebHostBuilder

configureOptions
Action<NamedPipeTransportOptions>

用于配置传输选项的回调。

返回

IWebHostBuilder

适用于