Exemplo n.º 1
0
        /// <summary>
        /// Projects each value of an observable sequence into a buffer.
        /// </summary>
        public static IObservable <IList <TSource> > BufferWithTime <TSource>(this IObservable <TSource> source, TimeSpan timeSpan)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            return(source.BufferWithTime(timeSpan, Scheduler.ThreadPool));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Projects each value of an observable sequence into a buffer.
        /// </summary>
        public static IObservable <IList <TSource> > BufferWithTime <TSource>(this IObservable <TSource> source, TimeSpan timeSpan, IScheduler scheduler)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }
            if (scheduler == null)
            {
                throw new ArgumentNullException("scheduler");
            }

            return(source.BufferWithTime(timeSpan, timeSpan, scheduler));
        }