title: How to call SignalR hub when application start?
body: <p>I have some recurring background jobs in my application using <a href="https://github.com/HangfireIO/Hangfire" rel="nofollow">Hangfire</a>:</p>
  
  <pre><code>public class NotificationWeeklyHub : Hub
  {
          public void SendNotificationWeekly()
          {
              /*Recurring Job
                Clients.All.SendNotificationWeekly();
              */
              // code....
          }
  }
  </code></pre>
  
  <p>So I want to send  notification for my users, in this case I want to call my Hub when application is started, So How can I call my hub in this way?<br>
  PS: My client side code for calling the hub:</p>
  
  <pre><code>&lt;script src="~/Scripts/jquery.signalR-2.1.2.min.js"&gt;&lt;/script&gt;
  &lt;script src="~/signalr/hubs"&gt;&lt;/script&gt;
  &lt;script src="~/Scripts/toastr.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  
      var notifyWeekly = $.connection.notificationWeekly;
      notifyWeekly.client.sendNotificationWeekly = function () {
          toastr.success("Message");
      };
  
      $.connection.hub.start().done(function() {
          notifyWeekly.server.sendNotificationWeekly();
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>My goal is just sending notification (in my case using <a href="https://github.com/CodeSeven/toastr" rel="nofollow">toastr</a> library) in those particular times. Any idea?<br>
  Thanks in advance</p>