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