Exemple #1
0
 /// <summary>
 /// Inicializa a instancia.
 /// </summary>
 public void Initialize()
 {
     if (!_initialized)
     {
         _dataRepository.Initialize();
         _structRepository.Initialize();
         if (_dataRespositoryDictionary == null)
         {
             _dataRespositoryDictionary = _dataRepository.LoadDictionary();
         }
         var channels = _structRepository.GetChannels();
         var elements = _dataRepository.GetElements();
         foreach (var currentChannel in channels)
         {
             _channelManager.BuildIndexSummary(elements.Where(n => n.ChannelId == currentChannel.ChannelId), currentChannel, _dataRespositoryDictionary);
         }
     }
 }