Rebase pull request #265 from lodejard/dev

Rebased #265 on top of latest aspnet/dev
Looks like in some places in this file it uses named parameters for this value (good!), and also uses a slightly different parameter for the async param (in some places it passes in a `bool` with value `true`). Should these be made consistent?