Esempio n. 1
0
 /// <summary>
 /// Import a specific member
 /// </summary>
 /// <param name="selector">selector method, can be null</param>
 /// <param name="injectMethods"></param>
 /// <returns>configuraiton object</returns>
 public IFluentExportStrategyConfiguration ImportMembers(Func <MemberInfo, bool> selector = null, bool injectMethods = false)
 {
     return(_strategy.ImportMembers(selector, injectMethods));
 }
        /// <summary>
        ///
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="configuration"></param>
        /// <param name="propertyFilter"></param>
        /// <returns></returns>
        public static IFluentExportStrategyConfiguration <T> AutoWireProperties <T>(this IFluentExportStrategyConfiguration <T> configuration, Func <PropertyInfo, bool> propertyFilter = null)
        {
            configuration.ImportMembers(MembersThat.AreProperty(propertyFilter));

            return(configuration);
        }