no point in capturing the lambda, just set the lambda directly.  Aka

```c#
hubConnection.Error += (ex) =>
{
    tcs.TrySetResult(ex);
}
```