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(); }
static void Main(string[] args) { Console.WriteLine("SampleStreamConsumer"); SampleStreamConsumer consumer = new SampleStreamConsumer(); consumer.OutputFileDirectory = "samplestream/"; consumer.Run(); }
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(); }
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(); }