title: Windows Azure Service Bus Notification Hub Only Receiving Portion of Notifications
body: <p>I have an ASP.NET MVC Controller method similar to below:</p>
  
  <pre><code>    public JsonResult GenerateNotifications()
      {
          Task.Factory.StartNew(() =&gt; MyService.GenerateNotifications());
          return Json(new { success = true }, JsonRequestBehavior.AllowGet);
      }
  </code></pre>
  
  <p>My Service method looks like the following:</p>
  
  <pre><code>    public async void GenerateNotifications()
      {
          NotificationHubClient hub = NotificationHubClient.CreateClientFromConnectionString(AppHelper.AzureNotificationHubConnectionString, "myhub");
  
          for (int i = 0; i &lt; 10; i++)
          {
              var notification = new
              {
                  aps = new
                  {
                      alert = string.Format("Awesome Notification {0}", i),
                      sound = "default"
                  }
              };
  
              string notificationJSON = JsonConvert.SerializeObject(notification);
              NotificationOutcome result = await hub.SendAppleNativeNotificationAsync(notificationJSON, "mytag");
          }
      }
  </code></pre>
  
  <p>The problem I'm having is that out of the 10 notifications i should be receiving, I usually only receiving 5-6 of them. </p>
  
  <p>Is there something wrong with the way I'm handling the <code>async</code> calls? </p>
  
  <p>Should I be generating the notifications a different way from the controller?</p>