In StreamInsight, many samples address the linq usages of count, sum, filter of a stream.
var cepStream = enumerable.ToPointStream(application, e => PointEvent<Car>.CreateInsert(new DateTimeOffset(e.TimeStamp, TimeSpan.Zero), e), AdvanceTimeSettings.IncreasingStartTime);
var step1 = from e in cepStream
where e.Color == "RedCar"
select e;
Have some difficulties to define query that extracts records occurred within certain time length. For example, step1 stores points events that are "RedCar", but how to extract events of two consecutive "RedCar"occurred within 10 mins??
Really got stuck here and any help is greatly appreciated!!