Example #1
0
        public override void Transfer(List <Marc> filesList)
        {
            //move the files to new location
            Console.WriteLine("moved marc files for EU");

            foreach (var item in filesList)
            {
                S3MarcManager.UploadFile(item, CompositeBucketName(item));
                item.IsFileUploaded = true;
            }
        }
Example #2
0
        public override void Transfer(List <Marc> filesList)
        {
            //move the files to new location
            Console.WriteLine("moved marc files for NA");
            var i = 0;

            foreach (var item in filesList)
            {
                try
                {
                    Console.WriteLine("Transfer of product - " + item.Isbn);

                    S3MarcManager.UploadFile(item, CompositeBucketName(item));
                    item.IsFileUploaded = true;
                }
                catch (Exception e)
                {
                    Console.WriteLine(e);
                    throw;
                }
                Console.WriteLine("No of files transferred - " + i++);
            }
        }