public MessageTransformBuilder(TransformResultFactory <TResult> resultFactory) { ImplementationType = typeof(TResult).IsInterface ? TypeMetadataCache.ImplementationBuilder.GetImplementationType(typeof(TResult)) : typeof(TResult); _resultFactory = resultFactory; _resultTransforms = new Dictionary <string, IPropertyTransform <TResult, TInput> >(); _inputTransforms = new Dictionary <string, IPropertyTransform <TInput, TInput> >(); }
public ResultTransform(TransformResultFactory <TResult> resultFactory, IEnumerable <IPropertyTransform <TResult, TInput> > propertyTransforms) { _resultFactory = resultFactory; _propertyTransforms = propertyTransforms.ToArray(); }