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