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;
 }
Esempio n. 3
0
 internal static bool CachedTemplateIsFresh(FileInfo fileInfo, MailTemplate template)
 {
     return(fileInfo.Exists && fileInfo.LastWriteTime == template.LastWrite);
 }