use iisintegration

This commit is contained in:
Yanbing Shi 2018-03-25 22:34:40 -07:00
parent 9ee0242717
commit f292383090
2 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ namespace ANCMStressTestApp
factory.AddConsole();
})
.UseKestrel()
.UseIISIntegration()
.UseStartup<Startup>()
.Build();

View File

@ -188,7 +188,7 @@ namespace ANCMStressTestApp
while (!result.CloseStatus.HasValue && !token.IsCancellationRequested && !closeFromServer)
{
if (result.Count == closeFromServerLength &&
System.Text.Encoding.ASCII.GetString(buffer).Substring(0, result.Count) == closeFromServerCmd)
Encoding.ASCII.GetString(buffer).Substring(0, result.Count) == closeFromServerCmd)
{
// The client sent "CloseFromServer" text message to request the server to close (a test scenario).
closeFromServer = true;