Created
October 17, 2017 08:41
-
-
Save Vladimir-Novick/d45e1731677559874a0a4f6b67b1d2b7 to your computer and use it in GitHub Desktop.
Kestrel Server multithreading configuration to AspNetCore2 web application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var host = new WebHostBuilder() | |
.UseKestrel() | |
.UseLibuv(options => | |
{ | |
options.ThreadCount = 10; | |
}) | |
.UseUrls(url) | |
.UseContentRoot(Directory.GetCurrentDirectory()) | |
.UseStartup<Startup>() | |
.Build(); | |
host.Run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment