title: Extending SignalR Server Hub class to create a base Hub class
body: <p>I am trying to extend the SignalR Hub class to create a base class that is a SignalR Hub at it's core but with some extra pzazz.</p>
  
  <p>My base class:</p>
  
  <pre><code>public class MyBaseHub : Hub 
  {
      protected ISession NhSession { get; set; }
  
      public MyBaseHub(ISession nhSession)
      {
          NhSession = nhSession;
      }
  }
  </code></pre>
  
  <p>My derived class:</p>
  
  <pre><code>public class MyDerivedHub : MyBaseHub 
  {                
      public MyDerivedHub(ISession nhSession) : base(nhSession) { }
  }
  </code></pre>
  
  <p>The above builds fine, but the SignalR generated javascript throws an error and I cannot create a connection on the client. There was more code in my base class, but I took it all out to try and narrow down the issue and found the problem is on the client side.</p>
  
  <p>The generated Javascript throws an exception, "Uncaught SyntaxError: Unexpected Number", when defining the MyBaseHub hub client: </p>
  
  <pre><code>myBaseHub`1: { generated properties go in here }
  </code></pre>
  
  <p>So I'm guessing that SignalR hubs can only be inherited once? Does anyone know if what I'm trying to do is possible?</p>