示例#1
0
        public void Set <TProperty>(Expression <Func <TMessage, TProperty> > propertyExpression,
                                    Func <SourceContext <TProperty, TMessage>, TProperty> valueProvider)
        {
            var specification = new SourcePropertyTransformSpecification <TMessage, TMessage, TProperty>(propertyExpression.GetPropertyInfo(), valueProvider);

            _specifications.Add(specification);
        }
示例#2
0
        public void Set <TProperty>(PropertyInfo property, Transformation.IPropertyProvider <TProperty, TMessage> propertyProvider)
        {
            var specification = new SourcePropertyTransformSpecification <TMessage, TMessage, TProperty>(property, propertyProvider);

            _specifications.Add(specification);
        }