title: Does the SignalR IHubProxy interface expose any properties that indicate that the client is in a disconnected state?
body: <p>I have a .NET client that creates a proxy to my hub class. When the server hosting that hub goes down for long enough, the client will go into a disconnected state. I want to check if the proxy is in a disconnected state before invoking a hub method, rather than just attempting to invoke the hub method and then catching the error if it's in a disconnected state.</p>
  
  <p>While debugging in Visual Studio I can see the <code>IHubProxy</code> object has a base property <code>State</code> indicating the current state. It says Connected when it's working fine, and it says Disconnected when it's disconnected. However, I can't seem to access this property. </p>
  
  <p>Does anyone know if there is a way to tell? Ideally I'd just like to do something like this:</p>
  
  <pre><code>if (hubProxy.State == ConnectionState.Disconnected)
  {
      this.AttemptReconnection();
  }
  if (hubProxy.State == ConnectionState.Connected)
  {
      await hubProxy.Invoke("MyMethod", myMethodArgs);
  }
  </code></pre>