https://github.com/SignalR/SignalR/pull/1872/files#r3824445