title: acess signalr hub class methods from code behind
body: <p>Is it possible to execute a public method declared in a signalr hub from the code behind of a webforms page?</p>
  
  <p>I have found examples of how to send a message to the client from the code behind using </p>
  
  <pre><code>var context = GlobalHost.ConnectionManager.GetHubContext&lt;ChatHub&gt;();
  
  context.Clients.All.exampleMethod();
  </code></pre>
  
  <p>but i would like to access a public method in the hub for example to return a set of client ids associated with a user from a <code>ConcurrentDictionary</code> or datatable.</p>
  
  <p>Does anybody know if this is possible and if so how to go about this without broadcasting 
  a message to the client and back again.</p>