wip gene
This commit is contained in:
parent
84c240121d
commit
8b3f6a75bb
2 changed files with 5 additions and 3 deletions
|
|
@ -49,7 +49,7 @@ namespace cli
|
||||||
|
|
||||||
var app = hostengnine.Start();
|
var app = hostengnine.Start();
|
||||||
var mailer = app.Services.GetService<EMailer>();
|
var mailer = app.Services.GetService<EMailer>();
|
||||||
mailer.AllUserGen(2);
|
mailer.AllUserGen(2, nameof(UserOrientedTemplate));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -66,9 +66,10 @@ namespace cli.Services
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public void AllUserGen(long templateCode)
|
public void AllUserGen(long templateCode, string baseclassName = DefaultClassName)
|
||||||
{
|
{
|
||||||
string className = DefaultClassName;
|
string className = "Generated"+baseclassName;
|
||||||
|
|
||||||
string subtemp = stringLocalizer["MonthlySubjectTemplate"].Value;
|
string subtemp = stringLocalizer["MonthlySubjectTemplate"].Value;
|
||||||
|
|
||||||
logger.LogInformation($"Generating {subtemp}[{className}]");
|
logger.LogInformation($"Generating {subtemp}[{className}]");
|
||||||
|
|
@ -131,6 +132,7 @@ namespace cli.Services
|
||||||
foreach (Diagnostic diagnostic in failures)
|
foreach (Diagnostic diagnostic in failures)
|
||||||
{
|
{
|
||||||
logger.LogCritical("{0}: {1}", diagnostic.Id, diagnostic.GetMessage());
|
logger.LogCritical("{0}: {1}", diagnostic.Id, diagnostic.GetMessage());
|
||||||
|
logger.LogDebug("{0}: {1}", diagnostic.Id, diagnostic.Location.GetLineSpan());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue