title: Async Method in SignalR OnConnected()
body: <p>I have the following: </p>
  
  <pre><code>    public override Task OnConnected() {
          HandleConnectionAsync(Context).Wait();
          return base.OnConnected();
      }
  </code></pre>
  
  <p>In following the guidance around "don't block a hub method", I'm trying to await my <code>HandleConnectionAsync</code> call, but if I use <code>async</code>, I end up with the following:</p>
  
  <pre><code>    public override async Task OnConnected() {
          await HandleConnectionAsync(Context);
          await base.OnConnected();
      }
  </code></pre>
  
  <p>But then I'm not returning anything.  What's the right way to do this?</p>