Projects may have got many repositories

even local ones
This commit is contained in:
2018-06-25 22:15:33 +02:00
parent 2ef940e383
commit fea84e2df7
9 changed files with 102 additions and 92 deletions

View File

@ -83,6 +83,7 @@ namespace cli.Services
var templateInfo = dbContext.MailingTemplate.FirstOrDefault(t => t.Id == templateCode);
if (templateInfo==null) throw new Exception($"No template found under id {templateCode}.");
logger.LogInformation($"Using code: {templateCode}, subject: {subtemp} ");
logger.LogInformation("And body:\n"+templateInfo.Body);
using (StringReader reader = new StringReader(templateInfo.Body))
@ -104,7 +105,8 @@ namespace cli.Services
typeof(IdentityUser),
typeof(ApplicationUser),
typeof(Template),
typeof(UserOrientedTemplate)
typeof(UserOrientedTemplate),
typeof(System.Threading.Tasks.TaskExtensions)
} )
{
var location = type.Assembly.Location;