Beispiel #1
0
        public QuoteCollector(Playlist playlist, CultureMapper cultureMapper)
        {
            // checking preconditions
            if (playlist == null || cultureMapper == null)
            {
                throw new ArgumentNullException();
            }

            _playlist      = playlist;
            _cultureMapper = cultureMapper;
            _parsePageContentsAndExtractQuotes = ParsePageContentsAndExtractQuotes;
            _extractTopicTranslationsDelegate  = ExtractTopicTranslations;
            _topicTranslationsRegex            = CompileRegex(cultureMapper.ToList(), TopicTranslationRegexPattern, RegexOptions.ExplicitCapture);
        }