Ejemplo n.º 1
0
 public YtCollect(YtStore store, ISimpleFileStore simpleFileStore, AppCfg cfg, ILogger log)
 {
     Yt    = store;
     Store = simpleFileStore;
     Cfg   = cfg;
     Log   = log;
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 5
0
 public YtDataUpdater(YtStore store, AppCfg cfg, ILogger log)
 {
     Yt  = store;
     Cfg = cfg;
     Log = log;
 }
Ejemplo n.º 6
0
 public UserScrape(AzureContainers containers, RootCfg rootCfg, UserScrapeCfg cfg, SemVersion version, YtStore store)
 {
     Containers = containers;
     RootCfg    = rootCfg;
     Cfg        = cfg;
     Version    = version;
     Store      = store.Store;
 }
Ejemplo n.º 7
0
        public static YtStore YtStore(this Cfg cfg, ILogger log)
        {
            var ytStore = new YtStore(cfg.DataStore(cfg.App.Storage.DbPath), log);

            return(ytStore);
        }