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

末鹿安然 提交于 2019-12-13 03:31:08

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/57708071/uselibuv-option-gone-after-changing-microsoft-aspnetcore-all-to-microsoft-netcor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!