public ManyTransformer(Action <IChangeSet <TDestination, TKey> > updateAction, Func <TSource, TDestination> transformFactory) { _updater = new IntermediateUpdater <TDestination, TKey>(_cache); _transformFactory = transformFactory; _updateAction = updateAction; _cache = new Cache <TDestination, TKey>(); }
public SizeLimiter(int size) { _sizeLimit = size; _updater = new IntermediateUpdater <ExpirableItem <TObject, TKey>, TKey>(_cache); }
public AbstractTransformer(Action <Error <TSource, TKey> > exceptionCallback) { _updater = new IntermediateUpdater <TransformedItemContainer, TKey>(new Cache <TransformedItemContainer, TKey>()); _exceptionCallback = exceptionCallback; }