public void AddProcessingFile(string filename) { if (!Processing.Contains(filename, StringComparer.OrdinalIgnoreCase)) { Processing.Add(filename); } }
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); } }
public bool IsFileCurrentlyBeingProcessed(string filename) => Processing.Contains(filename, StringComparer.OrdinalIgnoreCase);