public async Task <bool> CrawlerExcute()
        {
            Console.WriteLine("get full socials info");
            InfoPeople infoPeople = new InfoPeople();

            return(await infoPeople.CrawlFull(_context));
        }
Beispiel #2
0
        public void Run()
        {
            var infoPeople     = new InfoPeople();
            var optionsBuilder = new DbContextOptionsBuilder <UserDbContext>();

            optionsBuilder.UseSqlServer(Configuration.GetConnectionString("AmazonVirtualMachineConnection"));
            var dbContext = new UserDbContext(optionsBuilder.Options);
            var res       = infoPeople.CrawlFull(dbContext).Result;
        }