3 instantiations of CompositionDependency
System.Composition.Hosting (3)
System\Composition\Hosting\Core\CompositionDependency.cs (3)
55return new CompositionDependency(contract, target, isPrerequisite, site); 76return new CompositionDependency(contract, site); 102return new CompositionDependency(contract, targets, site);
50 references to CompositionDependency
System.Composition.Hosting (34)
System\Composition\Hosting\Core\CompositionDependency.cs (3)
40public static CompositionDependency Satisfied(CompositionContract contract, ExportDescriptorPromise target, bool isPrerequisite, object site) 65public static CompositionDependency Missing(CompositionContract contract, object site) 87public static CompositionDependency Oversupplied(CompositionContract contract, IEnumerable<ExportDescriptorPromise> targets, object site)
System\Composition\Hosting\Core\DependencyAccessor.cs (9)
28public IEnumerable<CompositionDependency> ResolveDependencies(object site, CompositionContract contract, bool isPrerequisite) 31var result = new CompositionDependency[all.Length]; 33result[i] = CompositionDependency.Satisfied(contract, all[i], isPrerequisite, site); 44public CompositionDependency ResolveRequiredDependency(object site, CompositionContract contract, bool isPrerequisite) 46CompositionDependency result; 48return CompositionDependency.Missing(contract, site); 61public bool TryResolveOptionalDependency(object site, CompositionContract contract, bool isPrerequisite, out CompositionDependency dependency) 72dependency = CompositionDependency.Oversupplied(contract, all, site); 76dependency = CompositionDependency.Satisfied(contract, all[0], isPrerequisite, site);
System\Composition\Hosting\Core\ExportDescriptorPromise.cs (6)
19private readonly Lazy<ReadOnlyCollection<CompositionDependency>> _dependencies; 40Func<IEnumerable<CompositionDependency>> dependencies, 41Func<IEnumerable<CompositionDependency>, ExportDescriptor> getDescriptor) 46_dependencies = new Lazy<ReadOnlyCollection<CompositionDependency>>(() => new ReadOnlyCollection<CompositionDependency>(dependencies().ToList()), false); 65public ReadOnlyCollection<CompositionDependency> Dependencies { get { return _dependencies.Value; } }
System\Composition\Hosting\Core\ExportDescriptorProvider.cs (2)
31protected static readonly Func<IEnumerable<CompositionDependency>> NoDependencies = Enumerable.Empty<CompositionDependency>;
System\Composition\Hosting\Core\ExportDescriptorRegistryUpdate.cs (14)
17private static readonly CompositionDependency[] s_noDependenciesValue = Array.Empty<CompositionDependency>(); 18private static readonly Func<CompositionDependency[]> s_noDependencies = () => s_noDependenciesValue; 36CompositionDependency initial; 40var checking = new Stack<CompositionDependency>(); 54private void CheckTarget(CompositionDependency dependency, HashSet<ExportDescriptorPromise> @checked, Stack<CompositionDependency> checking) 74foreach (var dep in dependency.Target.Dependencies) 79private void CheckDependency(CompositionDependency dependency, HashSet<ExportDescriptorPromise> @checked, Stack<CompositionDependency> checking) 86foreach (var step in checking) 114private static StringBuilder DescribeCompositionStack(CompositionDependency import, Stack<CompositionDependency> dependencies) 122foreach (CompositionDependency step in dependencies)
System.Composition.TypedParts (16)
System\Composition\TypedParts\ActivationFeatures\ActivationFeature.cs (4)
18protected static readonly CompositionDependency[] NoDependencies = Array.Empty<CompositionDependency>(); 32IEnumerable<CompositionDependency> dependencies); 40public virtual IEnumerable<CompositionDependency> GetDependencies(TypeInfo partType, DependencyAccessor definitionAccessor)
System\Composition\TypedParts\ActivationFeatures\DisposalFeature.cs (1)
19IEnumerable<CompositionDependency> dependencies)
System\Composition\TypedParts\ActivationFeatures\LifetimeFeature.cs (1)
22IEnumerable<CompositionDependency> dependencies)
System\Composition\TypedParts\ActivationFeatures\OnImportsSatisfiedFeature.cs (1)
36IEnumerable<CompositionDependency> dependencies)
System\Composition\TypedParts\ActivationFeatures\PropertyInjectionFeature.cs (4)
27public override IEnumerable<CompositionDependency> GetDependencies(TypeInfo partType, DependencyAccessor definitionAccessor) 40var result = new List<CompositionDependency>(); 50CompositionDependency optional; 65IEnumerable<CompositionDependency> dependencies)
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (5)
72public CompositionDependency[] GetDependencies(DependencyAccessor definitionAccessor) 81private IEnumerable<CompositionDependency> GetPartActivatorDependencies(DependencyAccessor definitionAccessor) 129CompositionDependency optional; 164public CompositeActivator GetActivator(IEnumerable<CompositionDependency> dependencies) 181CompositionDependency dep;