Exemple #1
0
 public MediaWikiImageDownloader(ILogger <MediaWikiImageDownloader> logger, IWikiContentFactory wikiMediaFactory, IImageLicenseProvider imageLicenseProvider, INetworkingProvider networkingProvider)
 {
     _logger               = logger;
     _wikiMediaFactory     = wikiMediaFactory;
     _imageLicenseProvider = imageLicenseProvider;
     _networkingProvider   = networkingProvider;
 }
 public MediaWikiArticleDownloader(ILogger <MediaWikiArticleDownloader> logger, INetworkingProvider networkingProvider, IArticleLicenseProvider articleLicenseProvider, IWikiContentFactory wikiMediaFactory)
 {
     _logger = logger;
     _articleLicenseProvider = articleLicenseProvider;
     _wikiMediaFactory       = wikiMediaFactory;
     _networkingProvider     = networkingProvider;
 }
Exemple #3
0
        public PatternMatchingService(ILogger <PatternMatchingService> logger, IWikiContentFactory wikiContentFactory, IWikiComponentFactory wikiComponentFactory, IMatchSpecificationProvider matchSpecificationProvider)
        {
            _logger               = logger;
            _wikiContentFactory   = wikiContentFactory;
            _wikiComponentFactory = wikiComponentFactory;

            _templateSpecifications = matchSpecificationProvider.GetTemplateSpecifications();
        }
Exemple #4
0
        public MwParserApi(ILogger <MwParserApi> logger, IAstParser astTranslator, IWikiContentFactory wikiContentFactory, IWikiComponentFactory wikiComponentFactory)
        {
            _logger               = logger;
            _astTranslator        = astTranslator;
            _wikiContentFactory   = wikiContentFactory;
            _wikiComponentFactory = wikiComponentFactory;

            _parser = new WikitextParser();
        }