TransformText() public method

Create the template output
public TransformText ( ) : string
return string
Ejemplo n.º 1
0
 public string Generate()
 {
     var metaData = GetProxy();
     var template = new CSharpProxyTemplate(_config, metaData);
     var source = template.TransformText();
     return source;
 }
Ejemplo n.º 2
0
 public string Generate()
 {
     config.Metadata = GetProxy();
     var template = new CSharpProxyTemplate(config);
     var source = template.TransformText();
     return source;
 }
Ejemplo n.º 3
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;
        }