private void ExecuteTemplateApiHealth(TableInfo tableInfo, Context configContext) { if (!tableInfo.MakeApi) { return; } var pathOutput = PathOutput.PathOutputApiHeath(configContext, tableInfo); if (File.Exists(pathOutput)) { return; } var pathTemplateClass = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, this._defineTemplateFolder.Define(tableInfo), DefineTemplateName.ApiHealth(tableInfo)); if (!File.Exists(pathTemplateClass)) { return; } var textTemplateClass = Read.AllText(tableInfo, pathTemplateClass, this._defineTemplateFolder); var classBuilder = GenericTagsTransformer(tableInfo, configContext, textTemplateClass); using (var stream = new HelperStream(pathOutput).GetInstance()) { stream.Write(classBuilder); } }