コード例 #1
0
 public YtCollect(YtStore store, ISimpleFileStore simpleFileStore, AppCfg cfg, ILogger log)
 {
     Yt    = store;
     Store = simpleFileStore;
     Cfg   = cfg;
     Log   = log;
 }
コード例 #2
0
        public static YtStore YtStore(this Cfg cfg, ILogger log)
        {
            var reader  = new YtClient(cfg.App, log);
            var ytStore = new YtStore(reader, cfg.DataStore(cfg.App.Storage.DbPath));

            return(ytStore);
        }
コード例 #3
0
 public YtDataUpdater(YtStore store, AppCfg cfg, UpdateType updateType, Func <Task <DbConnection> > getConnection, ILogger log)
 {
     UpdateType    = updateType;
     GetConnection = getConnection;
     Store         = store;
     Cfg           = cfg;
     Log           = log;
     Scraper       = new YtScraper(cfg.Scraper);
     Api           = new YtClient(cfg.YTApiKeys, log);
 }
コード例 #4
0
 public YtCollector(YtStore store, AppCfg cfg, SnowflakeConnectionProvider sf, IPipeCtx pipeCtx, WebScraper webScraper, ChromeScraper chromeScraper,
                    YtClient api)
 {
     Store         = store;
     Cfg           = cfg;
     Sf            = sf;
     PipeCtx       = pipeCtx;
     Scraper       = webScraper;
     ChromeScraper = chromeScraper;
     Api           = api;
 }
コード例 #5
0
 public YtDataUpdater(YtStore store, AppCfg cfg, ILogger log)
 {
     Yt  = store;
     Cfg = cfg;
     Log = log;
 }
コード例 #6
0
ファイル: UserScrape.cs プロジェクト: tomleversage/Recfluence
 public UserScrape(AzureContainers containers, RootCfg rootCfg, UserScrapeCfg cfg, SemVersion version, YtStore store)
 {
     Containers = containers;
     RootCfg    = rootCfg;
     Cfg        = cfg;
     Version    = version;
     Store      = store.Store;
 }
コード例 #7
0
        public static YtStore YtStore(this Cfg cfg, ILogger log)
        {
            var ytStore = new YtStore(cfg.DataStore(cfg.App.Storage.DbPath), log);

            return(ytStore);
        }