.Result -> .GetAwaiter().GetResult()

This commit is contained in:
Ben Adams 2015-11-11 09:46:56 +00:00
parent 55f6f21d5a
commit 0500043cc9
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
public override int Read(byte[] buffer, int offset, int count)
{
return ReadAsync(buffer, offset, count).Result;
return ReadAsync(buffer, offset, count).GetAwaiter().GetResult();
}
#if NET451