mirror of
https://github.com/Stefan-5422/-T5-Elektrifikatsiya.git
synced 2026-09-04 00:45:58 +02:00
Fix warning
This commit is contained in:
@@ -4,20 +4,20 @@ namespace Elektrifikatsiya.Utilities;
|
|||||||
|
|
||||||
public class EmailSettings
|
public class EmailSettings
|
||||||
{
|
{
|
||||||
public string User { get; set; }
|
public string User { get; set; }
|
||||||
public string DefaultEmail { get; set; }
|
public string DefaultEmail { get; set; }
|
||||||
public string Key { get; set; }
|
public string Key { get; set; }
|
||||||
public Dictionary<string, string> Templates { get; set; }
|
public Dictionary<string, string> Templates { get; set; }
|
||||||
public string SmtpServer { get; set; }
|
public string SmtpServer { get; set; }
|
||||||
public int SmtpPort { get; set; }
|
public int SmtpPort { get; set; }
|
||||||
|
|
||||||
public Dictionary<string, HandlebarsTemplate<object, object>> CompiledTemplates = new();
|
public Dictionary<string, HandlebarsTemplate<object, object>> CompiledTemplates { get; } = new();
|
||||||
|
|
||||||
public void CompileTemplates()
|
public void CompileTemplates()
|
||||||
{
|
{
|
||||||
foreach ((string templateName, string templatePath) in Templates)
|
foreach ((string templateName, string templatePath) in Templates)
|
||||||
{
|
{
|
||||||
CompiledTemplates.Add(templateName, Handlebars.Compile(File.ReadAllText(templatePath)));
|
CompiledTemplates.Add(templateName, Handlebars.Compile(File.ReadAllText(templatePath)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user