Example #1
0
        static async Task Main(string[] args)
        {
            await BaseUsage.Run();

            // await DistributedSpider.Run();
            Console.Read();
        }
Example #2
0
        public static void Main(string[] args)
        {
            BaseUsage.Run();
            IocContainer.Default.AddSingleton <IMonitor, NLogMonitor>();

            JdSkuSampleSpider spider = new JdSkuSampleSpider();

            spider.Run();
        }
Example #3
0
        public static void Main(string[] args)
        {
            IocManager.AddSingleton <IMonitor, NLogMonitor>();

            BaseUsage.Run();



            //CasSpider casSper = new CasSpider();
            //casSper.Run();
        }
Example #4
0
        static async Task Main(string[] args)
        {
            var configure = new LoggerConfiguration()
#if DEBUG
                            .MinimumLevel.Verbose()
#else
                            .MinimumLevel.Information()
#endif
                            .MinimumLevel.Override("Microsoft", LogEventLevel.Warning)
                            .Enrich.FromLogContext()
                            .WriteTo.Console().WriteTo
                            .RollingFile("dotnet-spider.log");

            Log.Logger = configure.CreateLogger();

            await BaseUsage.Run();

            // await DistributedSpider.Run();
            Console.Read();
        }
Example #5
0
 public static void Main(string[] args)
 {
     BaseUsage.Run();
 }