public DataService(IUnitOfWork db, ICustomService custom, IRssService rss, ISearchService search) { _db = db; _custom = custom; _rss = rss; _search = search; }
public NavigationController(IArticleService articleService, IRssService rssService, IMapper mapper, IConfiguration configuration) { _articleService = articleService; _rssService = rssService; _mapper = mapper; _configuration = configuration; }
public BlogController(IRssService rss, IDataService ds, ILogger <BlogController> logger) { _rss = rss; _ds = ds; _logger = logger; _theme = $"~/{ApplicationSettings.BlogThemesFolder}/{ApplicationSettings.BlogTheme}/"; }
public AdminController(IUnitOfWork db, IRssService rss, ILogger <AdminController> logger) { _db = db; _rss = rss; _logger = logger; _theme = "~/Views/Blogifier/Admin/" + ApplicationSettings.AdminTheme + "/"; }
public BlogController(IRssService rss, IDataService ds, ILogger <BlogController> logger) { _rss = rss; _ds = ds; _logger = logger; _theme = string.Format(_themePattern, ApplicationSettings.BlogTheme); }
public HomeViewModel( INavigationService navigationService, IRssService rssService) { _navigationService = navigationService; _rssService = rssService; }
public MainViewModel(INavigationService navigationService, IRssService rssService) { this.navigationService = navigationService; this.rssService = rssService; this.FeedCategories = new ObservableCollection<RssFeed> { new RssFeed { Title = "Developer", RssUrl = @"http://blogs.esri.com/esri/arcgis/category/developer/feed" }, new RssFeed { Title = "ArcGIS Online", RssUrl = @"http://blogs.esri.com/esri/arcgis/category/arcgis-online/feed" }, new RssFeed { Title = "Editing", RssUrl = @"http://blogs.esri.com/esri/arcgis/category/editing/feed" }, new RssFeed { Title = "Mobile", RssUrl = @"http://blogs.esri.com/esri/arcgis/category/mobile/feed" }, new RssFeed { Title = "Mapping", RssUrl = @"http://blogs.esri.com/esri/arcgis/category/mapping/feed" }, new RssFeed { Title = "Analysis & Geoprocessing", RssUrl = @"http://blogs.esri.com/esri/arcgis/category/subject-analysis-and-geoprocessing/feed" }, new RssFeed { Title = "Services", RssUrl = @"http://blogs.esri.com/esri/arcgis/category/services/feed" }, new RssFeed { Title = "Web", RssUrl = @"http://blogs.esri.com/esri/arcgis/category/web/feed" }, new RssFeed { Title = "Geodata", RssUrl = @"http://blogs.esri.com/esri/arcgis/category/geodata/feed" }, new RssFeed { Title = "3D GIS", RssUrl = @"http://blogs.esri.com/esri/arcgis/category/subject-3d-gis/feed" }, new RssFeed { Title = "Imagery", RssUrl = @"http://blogs.esri.com/esri/arcgis/category/subject-imagery/feed" }, new RssFeed { Title = "Python", RssUrl = @"http://blogs.esri.com/esri/arcgis/category/subject-python/feed" } }; this.LoadingText = string.Format("Loading feed..."); this.rssFeed = new RssFeed { RssUrl = FeedUrl, Title = "ArcGIS Blogs" }; if (!this.IsOffline) { this.LoadFeed(); } }
public BlogController(IRssService rss, IDataService ds, ILogger <BlogController> logger) { this.rss = rss; this.ds = ds; this.logger = logger; this.theme = $"~/{ApplicationSettings.BlogThemesFolder}/{BlogSettings.Theme}/"; }
public MainViewModel( IRssService rssService, INavigationService navigationService) { _rssService = rssService; _navigationService = navigationService; Items = new ObservableCollection<RssArticle>(); }
public AdminController(IUnitOfWork db, IRssService rss, ISearchService search, ILogger <AdminController> logger, ICompositeViewEngine engine) { _db = db; _rss = rss; _search = search; _logger = logger; _engine = engine; _theme = $"~/{ApplicationSettings.BlogAdminFolder}/"; }
public BlogController(IUnitOfWork db, ISearchService search, IRssService rss, ICustomService custom, ILogger <BlogController> logger) { _db = db; _search = search; _rss = rss; _custom = custom; _logger = logger; _theme = string.Format(_themePattern, ApplicationSettings.BlogTheme); }
public HomeController(IPostService postService, ISiteMapService siteMapService, ICommunicationService communicationService, IRssService rssService) { _postService = postService; _siteMapService = siteMapService; _communicationService = communicationService; _rssService = rssService; }
public MainViewModel(IRssService rssService) { _rssService = rssService; if (IsInDesignMode) { var task = _rssService.GetNews("abc"); task.Wait(); List<FeedItem> items = task.Result; News = new ObservableCollection<FeedItem>(items); } }
public MainViewModel(IRssService rssService) { _rssService = rssService; if (IsInDesignMode) { var task = _rssService.GetNews("abc"); task.Wait(); List <FeedItem> items = task.Result; News = new ObservableCollection <FeedItem>(items); } }
public RssAggregator(IRssService rssService, IConfigProvider urlProvider) { if (rssService == null) { throw new ArgumentNullException("rssService"); } if (urlProvider == null) { throw new ArgumentNullException("urlProvider"); } this.rssService = rssService; this.urlProvider = urlProvider; }
protected MainViewModel(INavigationService navigationService, IPageDialogService pageDialogService, IRssService rssService, IEventAggregator ea) : base(navigationService, pageDialogService) { Title = "Pagina Inicial"; RSSFeed = new ObservableCollection <RssData>(); Connectivity.ConnectivityChanged += Connectivity_ConnectivityChanged; ea.GetEvent <MessageSentEvent>().Subscribe(MessageReceived); _service = rssService; CarregaRSS(null); }
public void Startup() { _RSSService = (IRssService)Core.PluginLoader.GetPluginService(typeof(IRssService)); if (null == _RSSService) { // Sorry, no RSS plugin return; } // Register our action Core.ActionManager.RegisterMainMenuAction( new FriendsImportAction(), _ActionGroup, new ListAnchor(AnchorType.After, _ActionAbove), _ActionName, null, null); }
public void Setup() { _commandLocator = Substitute.For <ICommandLocator>(); _gpoSettings = Substitute.For <IGpoSettings>(); _welcomeSettingsHelper = Substitute.For <IWelcomeSettingsHelper>(); _rssService = Substitute.For <IRssService>(); var settings = new PdfCreatorSettings(); settings.ApplicationSettings.RssFeed = new pdfforge.PDFCreator.Conversion.Settings.RssFeed { Enable = true }; _rssFeedSettingsProvider = Substitute.For <ICurrentSettings <pdfforge.PDFCreator.Conversion.Settings.RssFeed> >(); _rssFeedSettingsProvider.Settings.Returns(settings.ApplicationSettings.RssFeed); }
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 }; }
public RssFeedViewModel(ICommandLocator commandLocator, ICurrentSettings <Conversion.Settings.RssFeed> rssFeedSettingsProvider, IGpoSettings gpoSettings, ITranslationUpdater translationUpdater, IWelcomeSettingsHelper welcomeSettingsHelper, IRssService rssService) : base(translationUpdater) { _rssFeedSettingsProvider = rssFeedSettingsProvider; _gpoSettings = gpoSettings; _rssService = rssService; _feedItems = new List <FeedItem>(); ShowWelcome = welcomeSettingsHelper.CheckIfRequiredAndSetCurrentVersion(); // Because the CheckIfRequiredAndSetCurrentVersion() sets the version in the registry, RaisePropertyChanged(nameof(ShowWelcome)); // ShowWelcome has to be set here in the ctor and not directly in the property UrlOpenCommand = commandLocator.GetCommand <UrlOpenCommand>(); ShowRssFeedCommand = new DelegateCommand(ShowRssFeed); ShowWelcomeWindow(); }
public ContentResult Rss(string pathInfo) { string targetPath; if (PathUtility.TryGetAbsolutePath("/" + pathInfo, out targetPath) == false) { return(new ContentResult { ContentType = "application/rss+xml", Content = "no data" }); } IRssService rssService = Ioc.Get <IRssService>(); string content = rssService.GetFolderRss(targetPath); return(new ContentResult { ContentType = "application/rss+xml", Content = content }); }
public RssLanding(IRssService service) { _service = service; }
public RssFeedsController(IRssService rssService) { _rssService = rssService; }
public void Setup() { _rssService = new ConcreteRssService(); _service = new BlogReaderService(_rssService); }
public ArticlesController(IRssService rssService) { _rssService = rssService; }
/// <summary> /// Конструктор. /// </summary> /// <param name="rssService">Логика.</param> /// <param name="settingsService">Поставщик конфигураций.</param> public FeedsController(IRssService rssService, ISettingsService settingsService) { this.rssService = rssService; this.settingsService = settingsService; }
public ToolsController(IUnitOfWork db, IRssService rss) { _db = db; _rss = rss; }
public ChannelService(IRssService rssService, IUserService userService) { this.rssService = rssService; this.userService = userService; }
public MainViewModel(IRssService rssService) { _rssService = rssService; }
protected RssServiceTest(IRssService rssService) { this.rssService = rssService; }
public RssCategoryFeedViewModel(INavigationService navigationService, IRssService rssService) { this.navigationService = navigationService; this.rssService = rssService; }
public RssViewModel(IRssService rssService) { this.rssService = rssService; }
public RssController(IRssService rss) { _rss = rss; }
public ToolsController(IUnitOfWork db, IRssService rss, ILogger <AdminController> logger) { this.db = db; this.rss = rss; this.logger = logger; }
public ListItemsInSavedFeedCommand(IRssService rssService, IStore <string, Feed> feedStore) { _feedStore = feedStore; _rssService = rssService; }
public FeedService(IRssService rssService) { _rssService = rssService ?? throw new ArgumentNullException(nameof(rssService)); }