WebHostBuilderWebListenerExtensions.UseWebListener WebHostBuilderWebListenerExtensions.UseWebListener WebHostBuilderWebListenerExtensions.UseWebListener Method

Definition

Overloads

UseWebListener(IWebHostBuilder) UseWebListener(IWebHostBuilder) UseWebListener(IWebHostBuilder)

Specify WebListener as the server to be used by the web host.

UseWebListener(IWebHostBuilder, Action<WebListenerOptions>) UseWebListener(IWebHostBuilder, Action<WebListenerOptions>) UseWebListener(IWebHostBuilder, Action<WebListenerOptions>)

Specify WebListener as the server to be used by the web host.

UseWebListener(IWebHostBuilder) UseWebListener(IWebHostBuilder) UseWebListener(IWebHostBuilder)

Specify WebListener as the server to be used by the web host.

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

Parameters

hostBuilder
IWebHostBuilder IWebHostBuilder IWebHostBuilder

The Microsoft.AspNetCore.Hosting.IWebHostBuilder to configure.

Returns

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

UseWebListener(IWebHostBuilder, Action<WebListenerOptions>) UseWebListener(IWebHostBuilder, Action<WebListenerOptions>) UseWebListener(IWebHostBuilder, Action<WebListenerOptions>)

Specify WebListener as the server to be used by the web host.

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseWebListener (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Server.WebListener.WebListenerOptions> options);
static member UseWebListener : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Server.WebListener.WebListenerOptions> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseWebListener (hostBuilder As IWebHostBuilder, options As Action(Of WebListenerOptions)) As IWebHostBuilder

Parameters

hostBuilder
IWebHostBuilder IWebHostBuilder IWebHostBuilder

The Microsoft.AspNetCore.Hosting.IWebHostBuilder to configure.

options
Action<WebListenerOptions>

A callback to configure WebListener options.

Returns

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Applies to