コード例 #1
0
ファイル: Program.cs プロジェクト: VacantFanatic/Test-CT
        static void Main(string[] args)
        {
            Console.WriteLine("SampleStreamConsumer");

            int rateLimitPerMinute;

            if (args.Length != 1 || !int.TryParse(args[0], out rateLimitPerMinute))
            {
                rateLimitPerMinute = _defaultRateLimit;
            }
            if (rateLimitPerMinute < 1)
            {
                rateLimitPerMinute = int.MaxValue;
            }

            Console.WriteLine("Database writes are limited to " + rateLimitPerMinute + " messages per minute.");
            if (rateLimitPerMinute == _defaultRateLimit)
            {
                Console.WriteLine("Start with command line parameter [n] to change the rate limit (e.g. SampleStreamConsumer.exe 10000). Use a high value when populating an empty database with word statistics.");
            }

            SampleStreamConsumer consumer = new SampleStreamConsumer(rateLimitPerMinute);

            consumer.OutputFileDirectory = "samplestream/";

            consumer.Run();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: gutelius/CrisisTracker
        static void Main(string[] args)
        {
            Console.WriteLine("SampleStreamConsumer");

            SampleStreamConsumer consumer = new SampleStreamConsumer();
            consumer.OutputFileDirectory = "samplestream/";
            consumer.Run();
        }
コード例 #3
0
        static void Main(string[] args)
        {
            Console.WriteLine("SampleStreamConsumer");

            SampleStreamConsumer consumer = new SampleStreamConsumer();

            consumer.OutputFileDirectory = "samplestream/";
            consumer.Run();
        }
コード例 #4
0
ファイル: Program.cs プロジェクト: krgorton/CrisisTracker
        static void Main(string[] args)
        {
            //HelloLinqToTwitter();

            int rateLimitPerMinute;
            if (args.Length != 1 || !int.TryParse(args[0], out rateLimitPerMinute))
                rateLimitPerMinute = 150;
            if (rateLimitPerMinute < 1)
                rateLimitPerMinute = int.MaxValue;

            Console.WriteLine("SampleStreamConsumer");

            SampleStreamConsumer consumer = new SampleStreamConsumer(rateLimitPerMinute);
            consumer.OutputFileDirectory = "samplestream/";

            consumer.Run();
        }
コード例 #5
0
ファイル: Program.cs プロジェクト: malimu/CrisisTracker
        static void Main(string[] args)
        {
            Console.WriteLine("SampleStreamConsumer");

            int rateLimitPerMinute;
            if (args.Length != 1 || !int.TryParse(args[0], out rateLimitPerMinute))
                rateLimitPerMinute = _defaultRateLimit;
            if (rateLimitPerMinute < 1)
                rateLimitPerMinute = int.MaxValue;

            Console.WriteLine("Database writes are limited to " + rateLimitPerMinute + " messages per minute.");
            if (rateLimitPerMinute == _defaultRateLimit)
                Console.WriteLine("Start with command line parameter [n] to change the rate limit (e.g. SampleStreamConsumer.exe 10000). Use a high value when populating an empty database with word statistics.");

            SampleStreamConsumer consumer = new SampleStreamConsumer(rateLimitPerMinute);
            consumer.OutputFileDirectory = "samplestream/";
            
            consumer.Run();
        }