GetMoviesFromXml() публичный Метод

public GetMoviesFromXml ( string files ) : List
files string
Результат List
Пример #1
0
        public List <XMLMovieProperties> GetMovieListFromXMLFiles(bool isFromLatest)
        {
            try
            {
                GenerateXMLFile objGenerateXml = new GenerateXMLFile();

                if (isFromLatest)
                {
                    string fileName = "MovieList-" + DateTime.Now.ToString("MMM-yyyy") + ".xml";

                    return(objGenerateXml.GetMoviesFromXml(new string[] { fileName }));
                }
                else
                {
                    string[] files = new BlobStorageService().GetUploadedFileFromBlob("crawlfiles").ToArray();

                    return(objGenerateXml.GetMoviesFromXml(files));
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
Пример #2
0
        public List<XMLMovieProperties> GetMovieListFromXMLFiles(bool isFromLatest)
        {
            try
            {
                GenerateXMLFile objGenerateXml = new GenerateXMLFile();

                if (isFromLatest)
                {
                    string fileName = "MovieList-" + DateTime.Now.ToString("MMM-yyyy") + ".xml";

                    return objGenerateXml.GetMoviesFromXml(new string[] { fileName });
                }
                else
                {
                    string[] files = new BlobStorageService().GetUploadedFileFromBlob("crawlfiles").ToArray();

                    return objGenerateXml.GetMoviesFromXml(files);
                }
            }
            catch (Exception)
            {
                throw;
            }
        }