/// <summary> /// Configure constructor parameter /// </summary> /// <param name="parameterType">parameter type</param> /// <returns></returns> public IFluentWithCtorConfiguration WithCtorParam(Type parameterType = null) { var constructorInfo = new ConstructorParameterInfo(null) { ParameterType = parameterType }; _exportConfiguration.ConstructorParameter(constructorInfo); return(new FluentWithCtorConfiguration(this, constructorInfo)); }
/// <summary> /// Configure constructor parameter /// </summary> /// <typeparam name="TParam"></typeparam> /// <param name="paramFunc"></param> /// <returns></returns> public IFluentWithCtorConfiguration<TParam> WithCtorParam<TParam>(Func<TParam> paramFunc = null) { var constructorInfo = new ConstructorParameterInfo(paramFunc) { ParameterType = typeof(TParam) }; _exportConfiguration.ConstructorParameter(constructorInfo); return new FluentWithCtorConfiguration<TParam>(this, constructorInfo); }