public IList <IResource> LoadExamplesViaBuilder(string releasePath) { Builder = new ResourceCatalogBuilder(); Builder.BuildReleaseExamples(releasePath); var resources = Builder.ResourceList; return(resources); }
// Travis.Frisinger - 02.05.2013 // // Removed the Async operation with file stream as it would fail to use the correct stream from time to time // causing the integration test suite to fail. By moving the operation into a Parallel.ForEach approach this // appears to have nearly the same impact with better stability. // ResourceCatalogBuilder now contains the refactored async logic ;) /// <summary> /// Loads the workspace via builder. /// </summary> /// <param name="workspacePath">The workspace path.</param> /// <param name="getDuplicates"></param> /// <param name="folders">The folders.</param> /// <returns></returns> public IList <IResource> LoadWorkspaceViaBuilder(string workspacePath, bool getDuplicates, params string[] folders) { Builder = new ResourceCatalogBuilder(); Builder.TryBuildCatalogFromWorkspace(workspacePath, folders); var resources = Builder.ResourceList; if (getDuplicates) { DuplicateResources = Builder.DuplicateResources; } return(resources); }