public virtual void AddResolveDependency(IInstantiationPoint otherPoint) { // Ignore the dependency if it is the same dependency as the current point if (Equals(otherPoint.Dependency, Dependency)) return; _resolvedPoints.Add(otherPoint); }
public virtual void AddResolveDependency(IInstantiationPoint otherPoint) { // Ignore the dependency if it is the same dependency as the current point if (Equals(otherPoint.Dependency, Dependency)) { return; } _resolvedPoints.Add(otherPoint); }
private static IDictionary<IDependency, ICollection<IInstantiationPoint>> GetPointsGroupedByDependency(IInstantiationPoint[] instantiationPoints) { var pointsGroupedByDependency = new ConcurrentDictionary<IDependency, ICollection<IInstantiationPoint>>(); foreach (var point in instantiationPoints) { var dependencies = point.GetRequiredDependencies().ToArray(); var nonPrimitiveDependencies = dependencies.Where(dependency => !dependency.DependencyType.IsPrimitive); foreach (var dependency in nonPrimitiveDependencies) { if (!pointsGroupedByDependency.ContainsKey(dependency)) pointsGroupedByDependency[dependency] = new List<IInstantiationPoint>(); pointsGroupedByDependency[dependency].Add(point); } } return pointsGroupedByDependency; }
public override void AddResolveDependency(IInstantiationPoint otherPoint) { _actualPoint.AddResolveDependency(otherPoint); }
public SingletonInstantiationPoint(IInstantiationPoint actualPoint) : base(actualPoint.Dependency) { _actualPoint = actualPoint; }
public void Add(IDependency key, IInstantiationPoint item) { _dependencyMapEntries[key] = item; }
public override void AddResolveDependency(IInstantiationPoint otherPoint) { _constructor.AddResolveDependency(otherPoint); }
public TransientInstantiationPoint(IInstantiationPoint actualPoint) : base(actualPoint.Dependency) { _actualPoint = actualPoint; }