Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

WebHostBuilderLibuvExtensions.UseLibuv Method

Definition

Namespace:
Microsoft.AspNetCore.Hosting
Assembly:
Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.dll
Package:
Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv v2.0.0
Package:
Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv v2.1.0
Package:
Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv v2.2.0
Package:
Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv v3.0.3
Package:
Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv v3.1.18
Package:
Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv v5.0.9
Package:
Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv v6.0.6

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

Name Description
UseLibuv(IWebHostBuilder)
Obsolete.

Specify Libuv as the transport to be used by Kestrel.

UseLibuv(IWebHostBuilder, Action<LibuvTransportOptions>)
Obsolete.

Specify Libuv as the transport to be used by Kestrel.

UseLibuv(IWebHostBuilder)

Source:
WebHostBuilderLibuvExtensions.cs
Source:
WebHostBuilderLibuvExtensions.cs
Source:
WebHostBuilderLibuvExtensions.cs
Source:
WebHostBuilderLibuvExtensions.cs
Source:
WebHostBuilderLibuvExtensions.cs
Source:
WebHostBuilderLibuvExtensions.cs

Caution

The libuv transport is obsolete and will be removed in a future release. See https://aka.ms/libuvtransport for details.

Specify Libuv as the transport to be used by Kestrel.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseLibuv(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseLibuv(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder);
[System.Obsolete("The libuv transport is obsolete and will be removed in a future release. See https://aka.ms/libuvtransport for details.", false)]
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseLibuv(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder);
static member UseLibuv : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
[<System.Obsolete("The libuv transport is obsolete and will be removed in a future release. See https://aka.ms/libuvtransport for details.", false)>]
static member UseLibuv : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseLibuv (hostBuilder As IWebHostBuilder) As IWebHostBuilder

Parameters

hostBuilder
IWebHostBuilder

The Microsoft.AspNetCore.Hosting.IWebHostBuilder to configure.

Returns

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Attributes

Applies to

UseLibuv(IWebHostBuilder, Action<LibuvTransportOptions>)

Source:
WebHostBuilderLibuvExtensions.cs
Source:
WebHostBuilderLibuvExtensions.cs
Source:
WebHostBuilderLibuvExtensions.cs
Source:
WebHostBuilderLibuvExtensions.cs
Source:
WebHostBuilderLibuvExtensions.cs
Source:
WebHostBuilderLibuvExtensions.cs

Caution

The libuv transport is obsolete and will be removed in a future release. See https://aka.ms/libuvtransport for details.

Specify Libuv as the transport to be used by Kestrel.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseLibuv(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::AspNetCore::Server::Kestrel::Transport::Libuv::LibuvTransportOptions ^> ^ configureOptions);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseLibuv(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.LibuvTransportOptions> configureOptions);
[System.Obsolete("The libuv transport is obsolete and will be removed in a future release. See https://aka.ms/libuvtransport for details.", false)]
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseLibuv(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.LibuvTransportOptions> configureOptions);
static member UseLibuv : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.LibuvTransportOptions> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
[<System.Obsolete("The libuv transport is obsolete and will be removed in a future release. See https://aka.ms/libuvtransport for details.", false)>]
static member UseLibuv : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.LibuvTransportOptions> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseLibuv (hostBuilder As IWebHostBuilder, configureOptions As Action(Of LibuvTransportOptions)) As IWebHostBuilder

Parameters

hostBuilder
IWebHostBuilder

The Microsoft.AspNetCore.Hosting.IWebHostBuilder to configure.

configureOptions
Action<LibuvTransportOptions>

A callback to configure Libuv options.

Returns

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Attributes

Applies to


Feedback

Was this page helpful?