Beispiel #1
0
 /// <summary>
 /// Save the mirror info to cache
 /// </summary>
 /// <param name="_mirrorInfo"></param>
 public void SaveToCache(List <TvdbMirror> _mirrorInfo)
 {
     if (_mirrorInfo != null && _mirrorInfo.Count > 0)
     {
         m_xmlWriter.WriteMirrorFile(_mirrorInfo, m_rootFolder + "\\mirrors.xml");
     }
 }
 public void SaveToCache(List <TvdbMirror> _mirrorInfo)
 {
     if (_mirrorInfo != null && _mirrorInfo.Count > 0)
     {
         if (!Directory.Exists(m_rootFolder))
         {
             Directory.CreateDirectory(m_rootFolder);
         }
         m_xmlWriter.WriteMirrorFile(_mirrorInfo, m_rootFolder + Path.DirectorySeparatorChar + "mirrors.xml");
     }
 }
 public void SaveToCache(List <TvdbMirror> mirrorInfo)
 {
     if (mirrorInfo != null && mirrorInfo.Count > 0)
     {
         if (!Directory.Exists(_rootFolder))
         {
             Directory.CreateDirectory(_rootFolder);
         }
         _mirrorLock.EnterWriteLock();
         try
         {
             _xmlWriter.WriteMirrorFile(mirrorInfo, _rootFolder + Path.DirectorySeparatorChar + "mirrors.xml");
         }
         finally
         {
             _mirrorLock.ExitWriteLock();
         }
     }
 }