title: Invoke a SignalR hub from .net code as well as JavaScript
body: <p>I have a SignalR hub, which i successfully call from JQuery.</p>
  
  <pre><code>public class UpdateNotification : Hub
  {
      public void SendUpdate(DateTime timeStamp, string user, string entity, string message)
      {
          Clients.All.UpdateClients(timeStamp.ToString("yyyy-MM-dd HH:mm:ss"), user, entity, message);       
      }
  }
  </code></pre>
  
  <p>update message sent successfully from JS like so</p>
  
  <pre><code>var updateNotification = $.connection.updateNotification;
  $.connection.hub.start({ transport: ['webSockets', 'serverSentEvents', 'longPolling'] }).done(function () { });
  updateNotification.server.sendUpdate(timeStamp, user, entity, message);
  </code></pre>
  
  <p>and received successfully like so</p>
  
  <pre><code>updateNotification.client.UpdateClients = function (timeStamp, user, entity, message) {
  </code></pre>
  
  <p>I can't work out how to call  sendUpdate from within my controller.</p>