public RssFeedCreatedDomainEventHandler(TraceId traceId,
                                         ILogger <RssFeedCreatedDomainEventHandler> logger,
                                         IRssFeedsRepository rssFeedsRepository)
 {
     _traceId            = traceId;
     _logger             = logger;
     _rssFeedsRepository = rssFeedsRepository;
 }
 public RssFeedsService(TraceId traceId,
                        ILogger <RssFeedsService> logger,
                        IRssFeedsRepository repository,
                        IEventBus eventBus)
 {
     _traceId    = traceId;
     _logger     = logger;
     _repository = repository;
     _eventBus   = eventBus;
 }
Ejemplo n.º 3
0
        public NewsViewModel(IMessenger messenger, IRssFeedsRepository repository, IRssService service, IConfigSettings configSettings)
            : base(TabType.News, IconType.Rss, "News")
        {
            _messenger      = messenger;
            _repository     = repository;
            _service        = service;
            _configSettings = configSettings;

            AddFeedCommand = new RelayCommand(OnAddFeed);
            RefreshCommand = new RelayCommand(OnRefresh);

            DeleteFeedCommand = new RelayCommand(OnDeleteFeed, IsFeedSelected);
            EditFeedCommand   = new RelayCommand(OnEditFeed, IsFeedSelected);

            Feeds = new ObservableCollection <Feed> {
                _allFeeds
            };
        }