title: Getting the context from a different assembly
body: <p>In my project I have different assemblies.</p>
  
  <p>The SignalR hub (and client MVC4 files) live in the <code>Website</code> project.</p>
  
  <p>My hub looks like this:</p>
  
  <pre><code>public class PredictHub : Hub
  {
      private readonly IChat _chat;
  
      public PredictHub(IChat chat)
      {
          _chat = chat;
      }
  
      public void Chat(String message)
      {
          _chat.AddMessage(message);
      }
  }
  </code></pre>
  
  <p>In my second assembly <code>Business</code> the <code>IChat.cs</code> and <code>Chat.cs</code> live:</p>
  
  <pre><code>public class Chat : IChat
  {
      public void AddMessage(String message)
      {
          var context = GlobalHost.ConnectionManager.GetHubContext&lt;ChatHub&gt;();
      }
  }
  </code></pre>
  
  <p>But because <code>Chat.cs</code> is in the <code>Business</code> assembly the <code>ChatHub</code> directive is not known because it's not referenced.</p>
  
  <p>How could this be solved?</p>