private async Task PushNotifyInboxMessageAppleAsync(InboxEntity inbox)
{
if (MvcApplication.IsApplePushRegistered)
{
if (!string.IsNullOrEmpty(inbox.ApplePushNotificationGatewayDeviceToken))
{
int count = await this.RetrieveInboxItemsCountAsync(inbox.RowKey);
MvcApplication.PushBroker.QueueNotification(new AppleNotification()
.ForDeviceToken(inbox.ApplePushNotificationGatewayDeviceToken)
.WithBadge(count));
}
}
}