private static void AddToProcessingQueue(string path) { if (!File.Exists(path)) { throw new FileNotFoundException("Item cannot be added to queue.", path); } var handler = HandlerFactory.GetInputHandler(path); if (handler != null) { c_queue.Enqueue(handler); c_loadedPaths.Add(handler.FilePath, handler); } StartNextInProcessingQueue(); }