title: SignalR - OWIN - Multiple endpoints
body: <p>I have a scenario as such.</p>
  
  <p>A base class which modules are derived from.<br/>
  Each module has it's own signalr hubs.<br/>
  I want to host all modules in a single host, separated by module name.<br/>
  Some modules will share hub names.</p>
  
  <pre><code>namespace domain.com.base
  {
      public class BaseClass
      {
          public string ApplicationName;
      }
  }
  
  namespace domain.com.billing
  {
      public class Billing : BaseClass
      {
          ApplicationName = "Billing";
      }
      public class NotificationHub : Hub
      {
          public void Credit(decimal amount)
          {
              Clients.All.Notify(amount);
          }
      }
  }
  
  namespace domain.com.reporting
  {
      public class Reporting : BaseClass
      {
          ApplicationName = "Reporting";
      }
      public class ReportingHub : Hub
      {
          public Report GetReport(int Id)
          {
               return ReportModule.RetrieveReport(Id);
          }
      }
  }
  </code></pre>
  
  <p>In OWIN.Startup.Configuration(IAppBuilder) is it possible to do something like such</p>
  
  <pre><code>namespace domain.com.external_access
  {
      public void Configuration(IAppBuilder app)
      {
          var asmList = GlobalResolver.Applications();
          foreach(var asm in asmList)
          {
              app.MapSignalR(asm.ApplicationName,false);
          }
      }
  }
  </code></pre>
  
  <p>Effectively giving you something like so...</p>
  
  <blockquote>
    <p><a href="http://domain.com.external_access/Reporting/hubs" rel="nofollow">http://domain.com.external_access/Reporting/hubs</a>
    <a href="http://domain.com.external_access/Billing/hubs" rel="nofollow">http://domain.com.external_access/Billing/hubs</a></p>
  </blockquote>