コード例 #1
0
ファイル: NewsAggregator.cs プロジェクト: dpjha84/NewsService
 public PagedNewsAggregator(INewsSourceRegistry <NewsSource> registry, ICrossSourceAggregationStrategy aggregationStrategy, IPagingStrategy pagingStrategy)
 {
     _newsSources = registry.GetNewsSources();
     registry.OnSourceRegistered   += Registry_OnSourceRegistered;
     registry.OnSourceUnregistered += Registry_OnSourceUnregistered;
     _aggregationStrategy           = aggregationStrategy;
     _pagingStrategy = pagingStrategy;
 }
コード例 #2
0
 public NewspaperPublisher(INewsSourceRegistry newsSourceRegistery, IAppConfiguration configuration)
 {
     _newsSourceRegistery = newsSourceRegistery;
     _configuration       = configuration;
 }
コード例 #3
0
 public NewsSourceController(INewsSourceRegistry <NewsSource> registry)
 {
     _registry = registry;
 }