void OnlineVideosMessageReceived(AsynchronousMessageQueue queue, SystemMessage message)
 {
     if (message.ChannelName == OnlineVideosMessaging.CHANNEL)
     {
         OnlineVideosMessaging.MessageType messageType = (OnlineVideosMessaging.MessageType)message.MessageType;
         switch (messageType)
         {
         case OnlineVideosMessaging.MessageType.SitesUpdated:
             bool?updateResult = (bool?)message.MessageData[OnlineVideosMessaging.UPDATE_RESULT];
             if (updateResult != false)
             {
                 if (OnlineVideoSettings.Instance.IsSiteUtilsListBuilt())
                 {
                     if (updateResult == true)
                     {
                         Log.Info("Reloading SiteUtil Dlls at runtime.");
                         DownloadManager.Instance.StopAll();
                         // now reload the appdomain
                         OnlineVideoSettings.Reload();
                         TranslationLoader.SetTranslationsToSingleton();
                         GC.Collect();
                         GC.WaitForFullGCComplete();
                     }
                 }
                 OnlineVideoSettings.Instance.BuildSiteUtilsList();
                 RebuildSitesList();
             }
             else
             {
                 // called when entering OnlineVideos first time (after sites have been updated)
                 if (!OnlineVideoSettings.Instance.IsSiteUtilsListBuilt())
                 {
                     // show the busy indicator, because loading site dlls takes some seconds
                     ServiceRegistration.Get <ISuperLayerManager>().ShowBusyScreen();
                     try
                     {
                         OnlineVideoSettings.Instance.BuildSiteUtilsList();
                         RebuildSitesList();
                     }
                     catch (Exception ex)
                     {
                         Log.Error(ex);
                     }
                     finally
                     {
                         ServiceRegistration.Get <ISuperLayerManager>().HideBusyScreen();
                     }
                 }
             }
             break;
         }
     }
 }
 void OnlineVideosMessageReceived(AsynchronousMessageQueue queue, SystemMessage message)
 {
     if (message.ChannelName == OnlineVideosMessaging.CHANNEL)
     {
         OnlineVideosMessaging.MessageType messageType = (OnlineVideosMessaging.MessageType)message.MessageType;
         switch (messageType)
         {
         case OnlineVideosMessaging.MessageType.RebuildSites:
             SiteGroupsList.Clear();
             SitesList.Clear();
             sitesListHasAllSites = false;
             break;
         }
     }
 }
 void OnlineVideosMessageReceived(AsynchronousMessageQueue queue, SystemMessage message)
 {
     if (message.ChannelName == OnlineVideosMessaging.CHANNEL)
     {
         OnlineVideosMessaging.MessageType messageType = (OnlineVideosMessaging.MessageType)message.MessageType;
         switch (messageType)
         {
         case OnlineVideosMessaging.MessageType.SitesUpdated:
             GetFilteredAndSortedSites();
             bool?updateResult = (bool?)message.MessageData[OnlineVideosMessaging.UPDATE_RESULT];
             if (updateResult == true)
             {
                 newDllsDownloaded = true;
             }
             else if (updateResult == null)
             {
                 newDataSaved = true;
             }
             break;
         }
     }
 }