예제 #1
0
        public PatternMatchingService(ILogger <PatternMatchingService> logger, IWikiContentFactory wikiContentFactory, IWikiComponentFactory wikiComponentFactory, IMatchSpecificationProvider matchSpecificationProvider)
        {
            _logger               = logger;
            _wikiContentFactory   = wikiContentFactory;
            _wikiComponentFactory = wikiComponentFactory;

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

            _parser = new WikitextParser();
        }