Beispiel #1
0
        private void LoadFirmwareFiles()
        {
            try
            {
                using (var sp = _sharepointClientFactory.Create(true))
                {
                    var firmwareFileConverter = new FirmwareFileConverter(sp, _storage.GetNames(),
                                                                          _storage.GetDocumentTypes(), sp.GetList(SharepointKeys.FirmwareFiles, ""));

                    LoadSharepointListAsAppend(CacheKeys.SFiles, Camls.FirmwareFiles, firmwareFileConverter,
                                               SharepointKeys.FirmwareFiles);
                }
            }
            catch (Exception ex)
            {
                Log.Error(ex, "Unable to load firmwares");
            }

            var counter = IncreaseLoadCounter();

            Log.Trace($"Firmware files loaded. {counter}/{_totalModules}");
        }