Using multiple threads in SampleApp

This commit is contained in:
Louis DeJardin 2015-09-18 17:22:10 -07:00
parent 5ba1b9fb3c
commit 13f46bb66b
1 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,7 @@ using System;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Http;
using Microsoft.Framework.Logging;
using Microsoft.AspNet.Server.Kestrel;
namespace SampleApp
{
@ -12,6 +13,9 @@ namespace SampleApp
{
public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
{
var ksi = app.ServerFeatures[typeof(IKestrelServerInformation)] as IKestrelServerInformation;
ksi.ThreadCount = 4;
loggerFactory.MinimumLevel = LogLevel.Debug;
loggerFactory.AddConsole(LogLevel.Debug);