コード例 #1
0
 public static IKeyedStream<TIn, TKey> ThroughAction<TIn, TKey>(this IKeyedStream<TIn, TKey> stream, string name, IThroughActionProcessor<TIn> processor)
 {
     return new ThroughActionStreamNode<TIn, IKeyedStream<TIn, TKey>>(name, new ThroughActionArgs<TIn, IKeyedStream<TIn, TKey>>
     {
         Processor = processor,
         Stream = stream
     }).Output;
 }
コード例 #2
0
 public static IKeyedStream<TIn, TKey> ThroughAction<TIn, TResource, TKey>(this IKeyedStream<TIn, TKey> stream, string name, ISingleStream<TResource> resourceStream, IThroughActionProcessor<TIn, TResource> processor)
 {
     return new ThroughActionStreamNode<TIn, IKeyedStream<TIn, TKey>, TResource>(name, new ThroughActionArgs<TIn, IKeyedStream<TIn, TKey>, TResource>
     {
         Stream = stream,
         ResourceStream = resourceStream,
         Processor = processor
     }).Output;
 }