public WorkloadStatisticsDecoratorTransformationBatched(Guid groupGuid, ZContext ctx, ITransformationBatchedFunctor <TIn, TOut> decoratedTransformationBatched, int boundedCapacity, Func <int> incMsg, Func <int> outMsg, CancellationToken ct)
     : base(groupGuid, ctx, DataflowNetworkConstituent.TransformationBatched, boundedCapacity, ct)
 {
     m_DecoratedTransformationBatched = decoratedTransformationBatched;
     m_InMsgFunc  = incMsg;
     m_OutMsgFunc = outMsg;
     m_nms        = 0;
 }
コード例 #2
0
 public StatisticsLogDecoratorTransformationBatched(ITransformationBatchedFunctor <TIn, TOut> decoratedTransformationBatched, ILogAgent logAgent)
     : base(logAgent, decoratedTransformationBatched.Title, DataflowNetworkConstituent.TransformationBatched)
 {
     m_DecoratedTransformationBatched = decoratedTransformationBatched;
 }
 public static ITransformationBatchedFunctor <TIn, TOut> WithStatistics <TIn, TOut>(this ITransformationBatchedFunctor <TIn, TOut> decoratedTransformation, ILogAgent logAgent)
 {
     return(new StatisticsLogDecoratorTransformationBatched <TIn, TOut>(decoratedTransformation, logAgent));
 }
コード例 #4
0
 public static ITransformationBatchedFunctor <TIn, TOut> WithWorkloadStatistics <TIn, TOut>(this ITransformationBatchedFunctor <TIn, TOut> decoratedTransformation, int boundedCapacity, Func <int> incMsgCnt, Func <int> outMsgCnt, ZContext ctx, Guid groupguid, CancellationToken ct)
 {
     return(new  WorkloadStatisticsDecoratorTransformationBatched <TIn, TOut>(groupguid, ctx, decoratedTransformation, boundedCapacity, incMsgCnt, outMsgCnt, ct));
 }
 public LogDecoratorTransformationBatched(ITransformationBatchedFunctor <TIn, TOut> decoratedTransformation, ILogAgent logAgent)
 {
     m_DecoratedTransformation = decoratedTransformation;
     m_LogAgent = logAgent;
 }
コード例 #6
0
 public static Func <IDataflowMessage <TIn>[], IDataflowMessage <TOut> > AsFunction <TIn, TOut>(this ITransformationBatchedFunctor <TIn, TOut> transformation)
 {
     return(transformation.Transform);
 }