public FeedsController(IMessageService messageService, INavigationService navigationService, ISyndicationService syndicationService,
                        INetworkInfoService networkInfoService, ILauncherService launcherService, ShellViewModel shellViewModel,
                        Lazy <AddEditFeedViewModel> addEditFeedViewModel, Lazy <FeedViewModel> feedViewModel, Lazy <FeedItemViewModel> feedItemViewModel)
 {
     this.messageService       = messageService;
     this.navigationService    = navigationService;
     this.syndicationService   = syndicationService;
     this.networkInfoService   = networkInfoService;
     this.launcherService      = launcherService;
     this.shellViewModel       = shellViewModel;
     this.addEditFeedViewModel = new Lazy <AddEditFeedViewModel>(() => InitializeViewModel(addEditFeedViewModel.Value));
     this.feedViewModel        = new Lazy <FeedViewModel>(() => InitializeViewModel(feedViewModel.Value));
     this.feedItemViewModel    = new Lazy <FeedItemViewModel>(() => InitializeViewModel(feedItemViewModel.Value));
     addFeedCommand            = new AsyncDelegateCommand(AddFeed);
     addEditLoadFeedCommand    = new AsyncDelegateCommand(AddEditLoadFeed);
     addUpdateFeedCommand      = new AsyncDelegateCommand(AddUpdateFeed, CanAddUpdateFeed);
     showFeedViewCommand       = new AsyncDelegateCommand(ShowFeedView);
     editFeedCommand           = new AsyncDelegateCommand(EditFeed);
     moveFeedUpCommand         = new DelegateCommand(MoveFeedUp, CanMoveFeedUp);
     moveFeedDownCommand       = new DelegateCommand(MoveFeedDown, CanMoveFeedDown);
     removeFeedCommand         = new AsyncDelegateCommand(RemoveFeed);
     refreshFeedCommand        = new AsyncDelegateCommand(RefreshFeed);
     readUnreadCommand         = new DelegateCommand(MarkAsReadUnread);
     showFeedItemViewCommand   = new AsyncDelegateCommand(ShowFeedItemView);
     launchBrowserCommand      = new AsyncDelegateCommand(LaunchBrowser, CanLaunchBrowser);
 }
Example #2
0
 public NewsService(ILoggingService loggingService, 
     ISyndicationService syndicationService,
     IRepository<NewsItem> newsRepository)
 {
     _loggingService = loggingService;
     _syndicationService = syndicationService;
     _newsRepository = newsRepository;
 }
 public SubscriptionController(
     ISyndicationService syndicationService,
     ICategoryService categoryService,
     IBlogConfig blogConfig)
 {
     _syndicationService = syndicationService;
     _categoryService    = categoryService;
     _blogConfig         = blogConfig;
 }
Example #4
0
 public SubscriptionController(
     ISyndicationService syndicationService,
     ICategoryService categoryService,
     IBlogConfig blogConfig,
     IBlogCache cache,
     IOpmlWriter opmlWriter)
 {
     _syndicationService = syndicationService;
     _categoryService    = categoryService;
     _blogConfig         = blogConfig;
     _cache      = cache;
     _opmlWriter = opmlWriter;
 }
        public NuGetFeedActionHandler(
            IHttpContextAccessor contextAccessor,
            IEmailService emailService,
            FeedContext dbContext,
            ISyndicationService syndicationService,
            ILogger <NuGetFeedActionHandler> logger)
        {
            HttpContext         = contextAccessor.HttpContext;
            _dbContext          = dbContext;
            _emailService       = emailService;
            _logger             = logger;
            _syndicationService = syndicationService;

            UserAgent = HttpContext.Request.Headers.TryGetValue("User-Agent", out var ua) ? ua.ToString() : null;
            RequestIP = HttpContext.Connection.RemoteIpAddress.ToString();
        }
Example #6
0
        public NewsFeedsController(IResourceService resourceService, IAppService appService, ILauncherService launcherService, IMessageService messageService,
            ISyndicationService syndicationService, SelectionService selectionService, Lazy<FeedListViewModel> feedListViewModel)
        {
            this.resourceService = resourceService;
            this.appService = appService;
            this.launcherService = launcherService;
            this.messageService = messageService;
            this.selectionService = selectionService;
            this.feedListViewModel = feedListViewModel;
            this.client = syndicationService.CreateClient();
            this.addNewFeedCommand = new AsyncDelegateCommand(AddNewFeed);
            this.removeFeedCommand = new AsyncDelegateCommand(RemoveFeedAsync, CanRemoveFeed);
            this.refreshFeedCommand = new AsyncDelegateCommand(RefreshFeed, CanRefreshFeed);
            this.readUnreadCommand = new DelegateCommand(MarkAsReadUnread, CanMarkAsReadUnread);
            this.launchWebBrowserCommand = new AsyncDelegateCommand(LaunchWebBrowser, CanLaunchWebBrowser);

            this.selectionService.PropertyChanged += SelectionServicePropertyChanged;
        }
Example #7
0
        public NewsFeedsController(IResourceService resourceService, IAppService appService, ILauncherService launcherService, IMessageService messageService,
                                   ISyndicationService syndicationService, SelectionService selectionService, Lazy <FeedListViewModel> feedListViewModel)
        {
            this.resourceService         = resourceService;
            this.appService              = appService;
            this.launcherService         = launcherService;
            this.messageService          = messageService;
            this.selectionService        = selectionService;
            this.feedListViewModel       = feedListViewModel;
            this.client                  = syndicationService.CreateClient();
            this.addNewFeedCommand       = new AsyncDelegateCommand(AddNewFeed);
            this.removeFeedCommand       = new AsyncDelegateCommand(RemoveFeedAsync, CanRemoveFeed);
            this.refreshFeedCommand      = new AsyncDelegateCommand(RefreshFeed, CanRefreshFeed);
            this.readUnreadCommand       = new DelegateCommand(MarkAsReadUnread, CanMarkAsReadUnread);
            this.launchWebBrowserCommand = new AsyncDelegateCommand(LaunchWebBrowser, CanLaunchWebBrowser);

            this.selectionService.PropertyChanged += SelectionServicePropertyChanged;
        }
 protected SyndicateEventFeed(ISyndicationService syndicationService)
 {
     this.syndicationService = syndicationService;
 }
Example #9
0
 public FeedController(ISyndicationService syndication)
 {
     _syndication = syndication;
 }
 public BlogPostFeed(ISyndicationService syndicationService)
     : base(syndicationService)
 {
 }
Example #11
0
 public RssActionResult(ISyndicationService syndicationService)
 {
     _syndicationService = syndicationService;
 }
Example #12
0
 public RssController(ISyndicationService result)
 {
     _syndication = result;
 }
Example #13
0
 public SyndicationController(FeedContext feedContext, ISyndicationService syndicationService)
 {
     _feedContext        = feedContext;
     _syndicationService = syndicationService;
 }
 public void SetUp()
 {
     syndicationService = new SyndicationService();
 }