Esempio n. 1
0
        public void loadXmlToDb_AddressObjects(string FileName)
        {
            FileStream ws;

            ws = File.OpenRead(FileName);
            AddressObjects cs = new AddressObjects();

            loadXmlToDb(ws, cs.Object, "dbo.Object");
        }
        public Dictionary <string, FirewallObject> GetPayload()
        {
            var combinedDictionary = new Dictionary <string, FirewallObject>();

            AddressObjects.ToList().ForEach(x => combinedDictionary.Add(x.Key, x.Value));
            SubnetObjects.ToList().ForEach(x => combinedDictionary.Add(x.Key, x.Value));
            AddressRangeObjects.ToList().ForEach(x => combinedDictionary.Add(x.Key, x.Value));
            return(combinedDictionary);
        }
Esempio n. 3
0
        public void ReadAddressObjectEntity(XmlReader reader)
        {
            XmlSerializer  serializer     = new XmlSerializer(typeof(AddressObjects));
            AddressObjects addressObjects = (AddressObjects)serializer.Deserialize(reader);
            var            table          = addressObjects.CreateDataTable(addressObjects.AddressObjectList);

            /*ToDo
             * bulk BulkSynchronize
             * */
        }