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); }
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)); }
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); }