public string Generate() { var metaData = GetProxy(); var template = new CSharpProxyTemplate(_config, metaData); var source = template.TransformText(); return source; }
public string Generate() { config.Metadata = GetProxy(); var template = new CSharpProxyTemplate(config); var source = template.TransformText(); return source; }
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; }