ServiceClientGenerator.GeneratorDriver.ExecuteGenerator C# (CSharp) Method

ExecuteGenerator() public method

Runs the generator and saves the content into _bcl35 directory under the generated files root.
public ExecuteGenerator ( BaseGenerator generator, string fileName, string subNamespace = null ) : void
generator ServiceClientGenerator.Generators.BaseGenerator The generator to use for outputting the text of the cs file
fileName string The name of the cs file
subNamespace string Adds an additional directory for the namespace
return void
        void ExecuteGenerator(BaseGenerator generator, string fileName, string subNamespace = null)
        {
            generator.Config = this.Configuration;
            var text = generator.TransformText();

            string outputFile;
            WriteFile(GeneratedFilesRoot, subNamespace, fileName, text, true, true, out outputFile);
            FilesWrittenToGeneratorFolder.Add(outputFile);
        }