Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TypeConstructionInfoBuilder"/> class.
 /// </summary>
 /// <param name="constructorSelector">The <see cref="IConstructorSelector"/> that is responsible
 /// for selecting the constructor to be used for constructor injection.</param>
 /// <param name="constructorDependencySelector">The <see cref="IConstructorDependencySelector"/> that is
 /// responsible for selecting the constructor dependencies for a given <see cref="ConstructionInfo"/>.</param>
 /// <param name="propertyDependencySelector">The <see cref="IPropertyDependencySelector"/> that is responsible
 /// for selecting the property dependencies for a given <see cref="Type"/>.</param>
 /// <param name="getConstructorDependencyExpression">A function delegate that returns the registered constructor dependency expression, if any.</param>
 /// <param name="getPropertyDependencyExpression">A function delegate that returns the registered property dependency expression, if any.</param>
 public TypeConstructionInfoBuilder(
     IConstructorSelector constructorSelector,
     IConstructorDependencySelector constructorDependencySelector,
     IPropertyDependencySelector propertyDependencySelector,
     Func <Type, string, Delegate> getConstructorDependencyExpression,
     Func <Type, string, Delegate> getPropertyDependencyExpression)
 {
     this.constructorSelector                = constructorSelector;
     this.constructorDependencySelector      = constructorDependencySelector;
     this.propertyDependencySelector         = propertyDependencySelector;
     this.getConstructorDependencyExpression = getConstructorDependencyExpression;
     this.getPropertyDependencyExpression    = getPropertyDependencyExpression;
 }
Beispiel #2
0
 public PropertyDependencySelector(IPropertyDependencySelector innerPropertyDependencySelector)
 {
     this.innerPropertyDependencySelector = innerPropertyDependencySelector;
 }