/// <summary> /// Constructor for XmlCacheProvider /// </summary> /// <param name="rootFolder">This is the folder on the disk where all the information are stored</param> public XmlCacheProvider(String rootFolder) { Initialised = false; _xmlWriter = new TvdbXmlWriter(); _xmlReader = new TvdbXmlReader(); _rootFolder = rootFolder; }
/// <summary> /// Constructor for XmlCacheProvider /// </summary> /// <param name="rootFolder">This is the folder on the disk where all the information are stored</param> public XmlCacheProvider(String rootFolder) { Initialised = false; _xmlWriter = new TvdbXmlWriter(); _xmlReader = new TvdbXmlReader(); _rootFolder = rootFolder.TrimEnd(Path.DirectorySeparatorChar).TrimEnd(Path.AltDirectorySeparatorChar); }
/// <summary> /// Constructor for XmlCacheProvider /// </summary> /// <param name="_rootFolder">This is the folder on the disk where all the information are stored</param> public XmlCacheProvider(String _rootFolder) { m_xmlWriter = new TvdbXmlWriter(); m_xmlReader = new TvdbXmlReader(); m_rootFolder = _rootFolder; if (!Directory.Exists(_rootFolder)) { Directory.CreateDirectory(_rootFolder); } }
/// <summary> /// Constructor for XmlCacheProvider /// </summary> /// <param name="_rootFolder">This is the folder on the disk where all the information are stored</param> public XmlCacheProvider(String _rootFolder) { m_xmlWriter = new TvdbXmlWriter(); m_xmlReader = new TvdbXmlReader(); m_rootFolder = _rootFolder; }