public override bool SetComponent(string component) { var(componentDirectoryFound, componentDirectory) = BaseDirectory.TryNavigateDirectoryDown(component); if (!componentDirectoryFound) { return(false); } Component = component; BaseDirectory = componentDirectory; return(true); }
public override ComponentResolution FindLibrary(string library) { if (string.IsNullOrWhiteSpace(library)) { throw new ArgumentException("libraryName not set"); } var resolution = new ComponentResolution(); var(componentDirFound, componentDir) = BaseDirectory.TryNavigateDirectoryDown(Component); if (!componentDirFound) { resolution.ResolvedComponent = false; return(resolution); } return(ProbeDirectoryForLibrary(componentDir, library)); }