Example #1
0
        protected override TOutput InvokeTransformationFunc(TInput row)
        {
            TOutput result = default;

            if (!CacheManager.Contains(row))
            {
                CacheManager.Add(row);
            }
            result = TransformationFunc.Invoke(row, CacheManager.Records);
            LogProgress();
            return(result);
        }
Example #2
0
 private TOutput WrapTransformation(TInput row)
 {
     if (!WasInitialized)
     {
         InitAction?.Invoke();
         WasInitialized = true;
         if (!DisableLogging)
         {
             NLogger.Debug(TaskName + " was initialized!", TaskType, "LOG", TaskHash, ControlFlow.ControlFlow.STAGE, ControlFlow.ControlFlow.CurrentLoadProcess?.Id);
         }
     }
     LogProgress();
     return(TransformationFunc.Invoke(row));
 }
Example #3
0
        protected override TOutput InvokeTransformationFunc(TInput row)
        {
            TOutput result = default;

            if (!FillCacheAfterTranformation)
            {
                TryAddRowToCache(row);
            }
            result = TransformationFunc.Invoke(row, CacheManager.Records);
            if (FillCacheAfterTranformation)
            {
                TryAddRowToCache(row);
            }
            LogProgress();
            return(result);
        }