Exemplo n.º 1
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="propertyType">property type to import, can be generic</param>
 /// <param name="propertyName">name of the property to inject, can be null</param>
 /// <param name="propertyPicker"></param>
 /// <param name="afterConstructor"></param>
 /// <param name="valueProvider"></param>
 public PropertyInjectionInspector(Type propertyType,
     string propertyName = null,
     Func<PropertyInfo,bool> propertyPicker = null,
     bool afterConstructor = false,
     IExportValueProvider valueProvider = null)
 {
     _propertyType = propertyType;
     _propertyName = propertyName;
     _propertyPicker = propertyPicker;
     _valueProvider = valueProvider;
     _afterConstructor = afterConstructor;
 }
            public ParameterExpression GetLocateDependencyExpression(Type importType = null,
                string importName = null,
                IInjectionTargetInfo targetInfo = null,
                string variableName = null,
                bool isRequired = true,
                IExportValueProvider valueProvider = null,
                ExportStrategyFilter exportStrategyFilter = null,
                ILocateKeyValueProvider locateKey = null,
                object comparerObject = null)
            {
                if (importType == null && importName == null)
                {
                    throw new ArgumentException("GetLocateDependencyExpression must be called with importType or ");
                }

                return null;
            }