diff --git a/src/Elektrifikatsiya/Elektrifikatsiya/Utilities/EmailSettings.cs b/src/Elektrifikatsiya/Elektrifikatsiya/Utilities/EmailSettings.cs index 4e53927..46f1575 100644 --- a/src/Elektrifikatsiya/Elektrifikatsiya/Utilities/EmailSettings.cs +++ b/src/Elektrifikatsiya/Elektrifikatsiya/Utilities/EmailSettings.cs @@ -4,20 +4,20 @@ namespace Elektrifikatsiya.Utilities; public class EmailSettings { - public string User { get; set; } - public string DefaultEmail { get; set; } - public string Key { get; set; } - public Dictionary Templates { get; set; } - public string SmtpServer { get; set; } - public int SmtpPort { get; set; } + public string User { get; set; } + public string DefaultEmail { get; set; } + public string Key { get; set; } + public Dictionary Templates { get; set; } + public string SmtpServer { get; set; } + public int SmtpPort { get; set; } - public Dictionary> CompiledTemplates = new(); - - public void CompileTemplates() - { - foreach ((string templateName, string templatePath) in Templates) - { - CompiledTemplates.Add(templateName, Handlebars.Compile(File.ReadAllText(templatePath))); - } + public Dictionary> CompiledTemplates { get; } = new(); + + public void CompileTemplates() + { + foreach ((string templateName, string templatePath) in Templates) + { + CompiledTemplates.Add(templateName, Handlebars.Compile(File.ReadAllText(templatePath))); + } } } \ No newline at end of file