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