Example #1
0
        private void Transormations()
        {
            DbData <List <ShopMember> > db = new DbData <List <ShopMember> >();

            db.GetData(ref shops);
            XmlParse <List <ShopMember> >  xml  = new XmlParse <>($"D:\\Lab5\\configuration.xml");
            JsonParse <List <ShopMember> > json = new JsonParse <>($"D:\\Lab5\\appsettings.json");

            xml.ConvertData(shops);
            json.ConvertData(shops);
            ZipFile.CreateFromDirectory($@"D:\Lab5", $@"D:\Archive\data.zip", CompressionLevel.Optimal, false, Encoding.UTF8);
            FtpSet ftpProvider = new FtpSet("ftp://192.168.100.5:21/", $@"D:\Archive\data.zip");

            ftpProvider.SentData();
        }