Esempio n. 1
0
        public bool Execute()
        {
            try
            {

                config = Configuration.Load();

                config.Metadata = GetProxy();

                var template = new CSharpProxyTemplate(config);

                var source = template.TransformText();

                File.WriteAllText(Filename, source);
                File.WriteAllText(Configuration.CacheFile, source);
            }
            catch (ConnectionException)
            {
                tryReadFromCache();
               // throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return true;
        }
 public CSharpProxyTemplate(Configuration config)
 {
     this.Configuration = config;
 }