/// <summary> /// Creates a basic repository /// </summary> public static Repository Create() { Repository result = null; string path = FindRepository(); if (Directory.Exists(path)) { result = new Repository(); result.Init(path); //Assign default instance if (_instance == null) { _instance = result; } } if (result == null) { throw new Exception(string.Format("Unable to find or create a Repository from '{0}'. Please check your configuration file or copy your repository files in '{1}'.", RepositoryConfigurationPath, Repository.DefaultRepository)); } return(result); }
public static Repository Create() { Repository result = null; string path = FindRepository(); if (Directory.Exists(path)) { result = new Repository(); result.Init(path); } if (result == null) throw new Exception(string.Format("Unable to find or create a Repository from '{0}'. Please check your configuration file", Properties.Settings.Default.RepositoryPath)); return result; }