예제 #1
0
 public void AddProcessingFile(string filename)
 {
     if (!Processing.Contains(filename, StringComparer.OrdinalIgnoreCase))
     {
         Processing.Add(filename);
     }
 }
예제 #2
0
 public void DoneProcessingFile(List <AnalogyLogMessage> messages, string filename)
 {
     lock (_lockObject)
     {
         if (Processing.Contains(filename))
         {
             Processing.Remove(filename);
         }
         if (ProcessedFileNames.Contains(filename))
         {
             ProcessedFileNames.Remove(filename);
         }
         ProcessedFileNames.Add(filename);
         if (Messages.ContainsKey(filename))
         {
             Messages.Remove(filename);
         }
         Messages.Add(filename, messages);
     }
 }
예제 #3
0
 public bool IsFileCurrentlyBeingProcessed(string filename) => Processing.Contains(filename, StringComparer.OrdinalIgnoreCase);