RepositoryLocationsCollectionClone Method (FuncString, String) |
Namespace: CMS.ContinuousIntegration.Internal
public Object Clone( Func<string, string> locationTransform )
// Obtain repository configuration FileSystemRepositoryConfiguration configuration = FileSystemRepositoryConfigurationBuilder.Build(); // Store relative paths for objects RepositoryLocationsCollection relativeLocations = new RepositoryLocationsCollection(); /*...*/ // Obtain absolute paths from the relative ones RepositoryLocationsCollection absoluteLocations = relativeLocations.Close(relativePath => Path.Combine(configuration.RepositoryRootPath, relativePath));