ServiceClientGenerator.GeneratorDriver.ExecuteExampleGenerator C# (CSharp) Method

ExecuteExampleGenerator() public method

public ExecuteExampleGenerator ( BaseGenerator generator, string fileName, string subNamespace = null ) : void
generator ServiceClientGenerator.Generators.BaseGenerator
fileName string
subNamespace string
return void
        void ExecuteExampleGenerator(BaseGenerator generator, string fileName, string subNamespace = null)
        {
            generator.Config = this.Configuration;
            var text = generator.TransformText();
            var outputSubFolder = @"docgenerator\AWSSDKDocSamples";
            if (subNamespace != null)
                outputSubFolder = Path.Combine(outputSubFolder, subNamespace);
            WriteFile(Path.GetFullPath(TestFilesRoot + @"\..\..\"), outputSubFolder, fileName, text);
        }