title: How to invoke SignalR hub operations from the server
body: <p>The <a href="https://github.com/SignalR/SignalR/wiki/Hubs" rel="nofollow">SignalR wiki</a> covers how to broadcast over a hub from outside of a hub. However, this calls the client side operation:</p>
  
  <pre><code>var context = GlobalHost.ConnectionManager.GetHubContext&lt;MyHub&gt;();
  context.Clients.Group(group).addMessage(message);
  </code></pre>
  
  <p>Is there a way to invoke the <strong>Hub Operation</strong>, ideally in a strongly typed way? e.g.</p>
  
  <pre><code>GetHubContext&lt;MyHub&gt;().Invoke(h =&gt; h.Say(message))
  </code></pre>
  
  <p>I know this is possible by connecting to the hub using the .NET client but this seems wrong for when the calling code is on the same server as the hub.</p>