internal override string RenderFile(string clientCode)
        {
            var template = LoadTemplate("File");

            template.Add("toolchain", SwaggerService.ToolchainVersion);
            template.Add("clients", clientCode);
            template.Add("interfaces", _resolver.GenerateTypes());
            return(template.Render());
        }
Пример #2
0
        internal override string RenderFile(string clientCode)
        {
            var template = LoadTemplate("File");

            template.Add("toolchain", SwaggerService.ToolchainVersion);
            template.Add("clients", Settings.GenerateClientClasses ? clientCode : string.Empty);
            template.Add("interfaces", Settings.GenerateDtoTypes ? _resolver.GenerateTypes() : string.Empty);
            template.Add("hasModuleName", !string.IsNullOrEmpty(Settings.ModuleName));
            template.Add("moduleName", Settings.ModuleName);
            return(template.Render());
        }
 private string GenerateDtoTypes()
 {
     return(Settings.GenerateDtoTypes ? _resolver.GenerateTypes(Settings.TypeScriptGeneratorSettings.ProcessedExtensionCode) : string.Empty);
 }
Пример #4
0
 private string GenerateDtoTypes()
 {
     return(_settings.GenerateDtoTypes ? _resolver.GenerateTypes(_extensionCode) : string.Empty);
 }
        private string GenerateDtoTypes()
        {
            var code = Settings.GenerateDtoTypes ? _resolver.GenerateTypes() : string.Empty;

            return(ConvertExtendedClassSignatures(code));
        }