Esempio n. 1
0
 public Group(IDataflowFactory factory, IDataflowType <IGroupedDataflow <TKey, TElement> > type,
              TElement item, Func <TElement, TKey> keySelector)
     : base(factory, type)
 {
     Item        = item;
     KeySelector = keySelector;
 }
Esempio n. 2
0
 public DataflowCalculation(IDataflowFactory factory, IDataflowType <TOutput> type,
                            TDataflowOperator @operator, Func <TInput, IDataflow <TOutput> > continuation)
     : base(factory, type)
 {
     Operator     = @operator;
     Continuation = continuation;
 }
        private static IObservable <TOutput> TransformDataflowsByType <TOutput>(IDataflowType <TOutput> dataflowType, IObservable <IDataflow <TOutput> > dataflows)
        {
            var transformDataflowHelperMethod = TransformDataflowHelperMethods.GetOrAdd(
                new Tuple <Type, Type>(typeof(TOutput), dataflowType.TypeOfDataflow),
                types => GetTransformDataflowHelperMethodInfo(types.Item1, types.Item2));

            return((IObservable <TOutput>)transformDataflowHelperMethod.Invoke(null, new object[] { dataflowType, dataflows }));
        }
Esempio n. 4
0
 public Buffer(IDataflowFactory factory, IDataflowType <IList <T> > type,
               T item, TimeSpan batchTimeout, int batchMaxSize)
     : base(factory, type)
 {
     Item         = item;
     BatchTimeout = batchTimeout;
     BatchMaxSize = batchMaxSize;
 }
Esempio n. 5
0
 protected Dataflow(IDataflowFactory factory, IDataflowType <T> type)
 {
     Factory = factory;
     Type    = type;
 }
Esempio n. 6
0
 public ReturnManyAsync(IDataflowFactory factory, IDataflowType <T> type, Task <IEnumerable <T> > result)
     : base(factory, type)
 {
     Result = result;
 }
 public ReturnMany(IDataflowFactory factory, IDataflowType <T> type, IEnumerable <T> result)
     : base(factory, type)
 {
     Result = result;
 }
 public ResultDataflow(IDataflowFactory factory, IDataflowType <T> type, IObservable <T> results)
     : base(factory, type)
 {
     Results = results;
 }
 public GroupedDataflow(IDataflowFactory factory, IDataflowType <TElement> type, TKey key, IObservable <TElement> items)
     : base(factory, type)
 {
     Key   = key;
     Items = items;
 }
 private static IObservable <IDataflow <TOutput> > PerformOperatorTyped(IDataflowType <TInput> dataflowType, IObservable <DataflowCalculation <TInput, TOutput, TDataflowOperator> > group)
 {
     return(((DataflowOperatorType <TInput, TDataflowOperator>)dataflowType).PerformOperator(group));
 }
Esempio n. 11
0
 public ToList(IDataflowFactory factory, IDataflowType <IList <T> > type, T item) : base(factory, type)
 {
     Item = item;
 }
 public ResultDataflow(IDataflowFactory factory, IDataflowType <T> type, ISourceBlock <T> results)
     : base(factory, type)
 {
     Results = results;
 }
 public GroupedDataflow(IDataflowFactory factory, IDataflowType <TElement> type, TKey key, ISourceBlock <TElement> items)
     : base(factory, type)
 {
     Key   = key;
     Items = items;
 }
 protected DataflowOperator(IDataflowFactory factory, IDataflowType <T> type) : base(factory, type)
 {
 }
Esempio n. 15
0
 public ReturnAsync(DataflowFactory dataflowFactory, IDataflowType <T> dataflowType, Task <T> result)
     : base(dataflowFactory, dataflowType)
 {
     Result = result;
 }
Esempio n. 16
0
 public Return(IDataflowFactory dataflowFactory, IDataflowType <T> dataflowType, T result)
     : base(dataflowFactory, dataflowType)
 {
     Result = result;
 }