internal static void AddOrUpdate(string path, MailTemplate template) { lock (CacheLock) { if (CachedTemplates.ContainsKey(path)) { CachedTemplates[path] = template; } else { CachedTemplates.Add(path, template); } } }
internal static bool CachedTemplateIsFresh(FileInfo fileInfo, MailTemplate template) { return fileInfo.Exists && fileInfo.LastWriteTime == template.LastWrite; }
internal static bool CachedTemplateIsFresh(FileInfo fileInfo, MailTemplate template) { return(fileInfo.Exists && fileInfo.LastWriteTime == template.LastWrite); }