Ejemplo n.º 1
0
        public void Analyze(IQueryableStream <Person> stream, Person item)
        {
            _totalPeople++;
            _totalAge += item.Age;
            var averageAge = _totalAge / _totalPeople;

            Console.WriteLine("{0}... Avg: {1}", _totalPeople, averageAge);
        }
Ejemplo n.º 2
0
        public void Analyze(IQueryableStream <Person> stream, Person item)
        {
            if (item.Name == "John")
            {
                Console.WriteLine("Found john!!!!!!");
            }

            var stopwatch = Stopwatch.StartNew();

            Console.WriteLine("Johns found: {0}", stream.Query(new { Name = "john" }, x => true).Count());
            stopwatch.Stop();
            Console.WriteLine("Time: {0}s", stopwatch.Elapsed.TotalMilliseconds / 1000);
        }
Ejemplo n.º 3
0
 public void Analyze(IQueryableStream <Person> stream, Person item)
 {
     //Console.WriteLine("4..4: {0}", item.Name);
 }