https://github.com/SignalR/SignalR/pull/1866/files#r3823713