Exemplo n.º 1
0
        //user can clear previous saved data by deleting the file from the config location
        public void Load()
        {
            var storageProxy        = new pickle.Pickler(GetExePath() + _configProxyPath);
            var storagePrevWsdl     = new pickle.Pickler(GetExePath() + _configPrevWsdlPath);
            var storageTimeout      = new pickle.Pickler(GetExePath() + _configTimeoutPath);
            var storagePrevUrl      = new pickle.Pickler(GetExePath() + _configPrevUrlPath);
            var storageUpdate       = new pickle.Pickler(GetExePath() + _configUpdatePath);
            var storageStartupWsdls = new pickle.Pickler(GetExePath() + _configStartupWsdlsPath);

            ConfigTimeout      = new model.Config.CallTimeout();
            ConfigProxy        = new model.Config.Proxy();
            ConfigPrevWsdls    = new model.Config.PrevWsdls(AppConfig.Instance.MaxPrevWsdls);
            ConfigPrevUrls     = new model.Config.PrevUrls(AppConfig.Instance.MaxPrevUrls);
            ConfigUpdate       = new model.Config.Update();
            ConfigStartupWsdls = new model.Config.StartupWsdls(AppConfig.Instance.MaxStartupWsdls);

            storageTimeout.Load(ConfigTimeout);
            storageProxy.Load(ConfigProxy);
            if (Mode == ProjectMode.MultipleWsdl)
            {
                storageUpdate.Load(ConfigUpdate);
                storagePrevWsdl.Load(ConfigPrevWsdls);
                storagePrevUrl.Load(ConfigPrevUrls);
                storageStartupWsdls.Load(ConfigStartupWsdls);
            }
        }
Exemplo n.º 2
0
        //user can clear previous saved data by deleting the file from the config location
        public void Load()
        {
            var storageProxy = new pickle.Pickler(GetExePath() + _configProxyPath);
            var storagePrevWsdl = new pickle.Pickler(GetExePath() + _configPrevWsdlPath);
            var storageTimeout = new pickle.Pickler(GetExePath() + _configTimeoutPath);
            var storagePrevUrl = new pickle.Pickler(GetExePath() + _configPrevUrlPath);
            var storageUpdate = new pickle.Pickler(GetExePath() + _configUpdatePath);
            var storageStartupWsdls = new pickle.Pickler(GetExePath() + _configStartupWsdlsPath);

            ConfigTimeout = new model.Config.CallTimeout();
            ConfigProxy = new model.Config.Proxy();
            ConfigPrevWsdls = new model.Config.PrevWsdls(AppConfig.Instance.MaxPrevWsdls);
            ConfigPrevUrls = new model.Config.PrevUrls(AppConfig.Instance.MaxPrevUrls);
            ConfigUpdate = new model.Config.Update();
            ConfigStartupWsdls = new model.Config.StartupWsdls(AppConfig.Instance.MaxStartupWsdls);

            storageTimeout.Load(ConfigTimeout);
            storageProxy.Load(ConfigProxy);
            if (Mode == ProjectMode.MultipleWsdl) {
                storageUpdate.Load(ConfigUpdate);
                storagePrevWsdl.Load(ConfigPrevWsdls);
                storagePrevUrl.Load(ConfigPrevUrls);
                storageStartupWsdls.Load(ConfigStartupWsdls);
            }
        }