Skip to content

Instantly share code, notes, and snippets.

@Vladimir-Novick
Created October 17, 2017 08:41
Show Gist options
  • Save Vladimir-Novick/d45e1731677559874a0a4f6b67b1d2b7 to your computer and use it in GitHub Desktop.
Save Vladimir-Novick/d45e1731677559874a0a4f6b67b1d2b7 to your computer and use it in GitHub Desktop.
Kestrel Server multithreading configuration to AspNetCore2 web application
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