private void InitNotificationHub()
 {
     AppSettings appSettings = new AppSettings();
     NotificationManager notificationManager = new NotificationManager(appSettings);
     if (appSettings.Notifications)
         notificationManager.RegistrerDeviceToAzureNotificationHub();
     else
         notificationManager.UnregistrerDeviceFromAzureNotificationHub();
 }
 public NotificationManager(AppSettings appSettings)
 {
     this.notificationHub = new NotificationHub(notificationHubName, notificationHubConnectionString);
     this.appSettings = appSettings;
 }