Using multiple threads in SampleApp
This commit is contained in:
parent
5ba1b9fb3c
commit
13f46bb66b
|
|
@ -5,6 +5,7 @@ using System;
|
||||||
using Microsoft.AspNet.Builder;
|
using Microsoft.AspNet.Builder;
|
||||||
using Microsoft.AspNet.Http;
|
using Microsoft.AspNet.Http;
|
||||||
using Microsoft.Framework.Logging;
|
using Microsoft.Framework.Logging;
|
||||||
|
using Microsoft.AspNet.Server.Kestrel;
|
||||||
|
|
||||||
namespace SampleApp
|
namespace SampleApp
|
||||||
{
|
{
|
||||||
|
|
@ -12,6 +13,9 @@ namespace SampleApp
|
||||||
{
|
{
|
||||||
public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
|
public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
|
||||||
{
|
{
|
||||||
|
var ksi = app.ServerFeatures[typeof(IKestrelServerInformation)] as IKestrelServerInformation;
|
||||||
|
ksi.ThreadCount = 4;
|
||||||
|
|
||||||
loggerFactory.MinimumLevel = LogLevel.Debug;
|
loggerFactory.MinimumLevel = LogLevel.Debug;
|
||||||
|
|
||||||
loggerFactory.AddConsole(LogLevel.Debug);
|
loggerFactory.AddConsole(LogLevel.Debug);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue