コード例 #1
0
        public CrawlerService(IRamseyContext context, IRecipeManager recipeManager, IWordRemover illegalRemover)
        {
            _context       = context;
            _recipeManager = recipeManager;

            _crawlers = new Dictionary <RecipeProvider, IRecipeCrawler>
            {
                { RecipeProvider.ReceptSe, new RamseyAuto(new ReceptSeConfig(), illegalRemover) },
                { RecipeProvider.Tasteline, new RamseyAuto(new TastelineConfig(), illegalRemover) },
                { RecipeProvider.Hemmets, new RamseyAuto(new HemmetsConfig(), illegalRemover) },
                { RecipeProvider.ICA, new RamseyAuto(new IcaConfig(), illegalRemover) },
            };
        }
コード例 #2
0
 public RecipeController(IRamseyContext ramseyContext, ICrawlerService crawlerService)
 {
     _ramseyContext  = ramseyContext;
     _crawlerService = crawlerService;
 }
コード例 #3
0
 public BasicWordRemover(IRamseyContext ramseyContext)
 {
     _ramseyContext = ramseyContext;
 }
コード例 #4
0
 public IngredientController(IRamseyContext ramseyContext)
 {
     _ramseyContext = ramseyContext;
 }
コード例 #5
0
 public SqlRecipeManager(IRamseyContext context)
 {
     _context = context;
 }
コード例 #6
0
 public MetaControllerV2(IRamseyContext ramseyContext)
 {
     _ramseyContext = ramseyContext;
 }
コード例 #7
0
 public TagsControllerV2(IRamseyContext ramseyContext)
 {
     _ramseyContext = ramseyContext;
 }