public void StopTopicImport(string uid) { if (uid == null) { throw new ArgumentNullException(nameof(uid)); } lock (Importers) { if (Importers.TryGetValue(uid, out var importer)) { importer.Stop(); _logger.Log(LogLevel.Information, "Stopped importer '{0}'."); } Importers.Remove(uid); } }