Result -> GetAwaiter().GetResult() for legacy
This commit is contained in:
parent
2ac5e4c790
commit
96c1668c54
|
|
@ -66,7 +66,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
|||
|
||||
public override int EndRead(IAsyncResult asyncResult)
|
||||
{
|
||||
return ((Task<int>)asyncResult).Result;
|
||||
return ((Task<int>)asyncResult).GetAwaiter().GetResult();
|
||||
}
|
||||
|
||||
private Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken, object state)
|
||||
|
|
|
|||
Loading…
Reference in New Issue