示例#1
0
 public AtomController(IUserService userService, IPostService postService, ILogger logger, ISyndicationFeedService syndicationFeedService)
     : base(logger)
 {
     _userService = userService;
     _postService = postService;
     _syndicationFeedService = syndicationFeedService;
 }
示例#2
0
 public UpdateService(IHtmlParser htmlParser, ISyndicationFeedService syndicationFeedService,
                      Func <IUnitOfWork> uowFactory, ILogger logger)
 {
     _htmlParser             = htmlParser;
     _logger                 = logger;
     _syndicationFeedService = syndicationFeedService;
     _uowFactory             = uowFactory;
 }
示例#3
0
 public AtomController(IBlogService blogService, IPostService postService, IDashboardService dashboardService, ILogger logger, ISyndicationFeedService syndicationFeedService)
     : base(logger)
 {
     _blogService            = blogService;
     _postService            = postService;
     _dashboardService       = dashboardService;
     _syndicationFeedService = syndicationFeedService;
 }
 public FcsFeedService(ISyndicationFeedService syndicationFeedService,
                       IFcsSyndicationFeedParserService fcsSyndicationFeedParserService,
                       IContractMappingService contractMappingService)
 {
     _syndicationFeedService          = syndicationFeedService;
     _fcsSyndicationFeedParserService = fcsSyndicationFeedParserService;
     _contractMappingService          = contractMappingService;
 }
示例#5
0
 public AtomController(IBlogService blogService, IPostService postService, IDashboardService dashboardService, ILogger logger, ISyndicationFeedService syndicationFeedService)
     : base(logger)
 {
     _blogService = blogService;
     _postService = postService;
     _dashboardService = dashboardService;
     _syndicationFeedService = syndicationFeedService;
 }
 public FundingClaimsFeedService(
     ISyndicationFeedService syndicationFeedService,
     ISyndicationFeedParserService <FundingClaimsFeedItem> syndicationFeedParserService,
     IFeedItemMappingService feedItemMappingService,
     IFeedRepository feedRepository,
     AtomFeedSettings atomFeedSettings,
     ILogger logger)
 {
     _syndicationFeedService       = syndicationFeedService;
     _syndicationFeedParserService = syndicationFeedParserService;
     _feedItemMappingService       = feedItemMappingService;
     _feedRepository   = feedRepository;
     _atomFeedSettings = atomFeedSettings;
     _logger           = logger;
 }
示例#7
0
        public FeedChecker(ILogger<FeedChecker> logger,
            IRssRepository rssRepository,
            ISyndicationFeedService syndicationFeedService,
            IFilterMatcher filterMatcher,
            IHttpClient httpClient,
            IMessageBus messageBus)
        {
            if (logger == null) throw new ArgumentNullException("logger");
            if (rssRepository == null) throw new ArgumentNullException("rssRepository");
            if (syndicationFeedService == null) throw new ArgumentNullException("syndicationFeedService");
            if (filterMatcher == null) throw new ArgumentNullException("filterMatcher");
            if (httpClient == null) throw new ArgumentNullException("httpClient");
            if (messageBus == null) throw new ArgumentNullException("messageBus");

            _logger = logger;
            _rssRepository = rssRepository;
            _syndicationFeedService = syndicationFeedService;
            _filterMatcher = filterMatcher;
            _httpClient = httpClient;
            _messageBus = messageBus;
        }
示例#8
0
        public FeedChecker(ILogger <FeedChecker> logger,
                           IRssRepository rssRepository,
                           ISyndicationFeedService syndicationFeedService,
                           IFilterMatcher filterMatcher,
                           IHttpClient httpClient,
                           IMessageBus messageBus)
        {
            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }
            if (rssRepository == null)
            {
                throw new ArgumentNullException("rssRepository");
            }
            if (syndicationFeedService == null)
            {
                throw new ArgumentNullException("syndicationFeedService");
            }
            if (filterMatcher == null)
            {
                throw new ArgumentNullException("filterMatcher");
            }
            if (httpClient == null)
            {
                throw new ArgumentNullException("httpClient");
            }
            if (messageBus == null)
            {
                throw new ArgumentNullException("messageBus");
            }

            _logger                 = logger;
            _rssRepository          = rssRepository;
            _syndicationFeedService = syndicationFeedService;
            _filterMatcher          = filterMatcher;
            _httpClient             = httpClient;
            _messageBus             = messageBus;
        }
示例#9
0
 public RssService(ISyndicationFeedService syndicationFeedService)
 {
     _syndicationFeedService = syndicationFeedService;
 }
示例#10
0
 public FeedController(ISyndicationFeedService syndicationFeedService, ILogger logger)
     : base(logger)
 {
     _syndicationFeedService = syndicationFeedService;
 }
 private FcsFeedService NewService(ISyndicationFeedService syndicationFeedService = null, IFcsSyndicationFeedParserService fcsSyndicationFeedParserService = null, IContractMappingService contractMappingService = null)
 {
     return(new FcsFeedService(syndicationFeedService, fcsSyndicationFeedParserService, contractMappingService));
 }
示例#12
0
 public RssLatest(ISyndicationFeedService rss, IOptions <LatestArticlesConfig> config)
 {
     _rss    = rss.CheckNotNull(nameof(rss));
     _config = config.CheckNotNull(nameof(config));
 }
示例#13
0
 public BoxLatestArticles(IOptions <LatestArticlesConfig> config, ISyndicationFeedService rss)
 {
     _rss    = rss ?? throw new ArgumentNullException(nameof(rss));
     _config = config ?? throw new ArgumentNullException(nameof(config));
 }