Search code examples
asp.net-core-2.0asp.net-core-2.1kestrel-http-server

UseLibuv option gone after changing Microsoft.aspnetcore.all to Microsoft.NETCore.App in .net core 2.1.6


I am using asp.net core 2.1.6 I have just changed my Microsoft.aspnetcore.all to Microsoft.NETCore.App as publishing the web api project is making too much size. In my code i were using use UseLibuv(o => o.ThreadCount = 1000) to set minmum thread count

public static IWebHostBuilder BuildWebHost(string[] args) => WebHost.CreateDefaultBuilder(args)
                .UseStartup<StartupShutdownHandler>()
                //.UseLibuv(o => o.ThreadCount = 1000)  
                ;

Now this option is not coming. How can i set min threads now like old one

It is bit related to Is Kestrel using a single thread for processing requests like Node.js?


Solution

  • For UseLibuv, it's under Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv package, you could try to install Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv from nuget.