4 references to TryResolveOptionalDependency
System.Composition.Hosting (2)
System\Composition\Hosting\Core\DependencyAccessor.cs (1)
47
if (!
TryResolveOptionalDependency
(site, contract, isPrerequisite, out result))
System\Composition\Hosting\Core\ExportDescriptorRegistryUpdate.cs (1)
37
if (
TryResolveOptionalDependency
("initial request", contract, true, out initial))
System.Composition.TypedParts (2)
System\Composition\TypedParts\ActivationFeatures\PropertyInjectionFeature.cs (1)
51
if (definitionAccessor.
TryResolveOptionalDependency
(i.Site, i.ImportInfo.Contract, false, out optional))
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (1)
130
if (definitionAccessor.
TryResolveOptionalDependency
(site, importInfo.Contract, true, out optional))