WebHostBuilderWebListenerExtensions.UseWebListener Method

Definition

Overloads

UseWebListener(IWebHostBuilder)

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

UseWebListener(IWebHostBuilder, Action<WebListenerOptions>)

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

UseWebListener(IWebHostBuilder)

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseWebListener(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder);
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

The Microsoft.AspNetCore.Hosting.IWebHostBuilder to configure.

Returns

IWebHostBuilder

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

UseWebListener(IWebHostBuilder, Action<WebListenerOptions>)

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseWebListener(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::AspNetCore::Server::WebListener::WebListenerOptions ^> ^ options);
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

The Microsoft.AspNetCore.Hosting.IWebHostBuilder to configure.

options
Action<WebListenerOptions>

A callback to configure WebListener options.

Returns

IWebHostBuilder

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Applies to