Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PieService" /> class.
 /// </summary>
 public PieService()
 {
     _fileSystem = new PieServerFileSystem(new FileSystem(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + FileSystem.PathSeparator + "PieServer"));
     _connectedUsers = new List<User>();
     _registeredUsers = LoadRegisteredUsers();
     _fileList = new List<string>();
 }
        /// <summary>
        /// Creates a version control system associated with a directory.
        /// </summary>
        /// <param name="root">The name of the project that this version control system should be associated with.</param>
        /// <param name="fileSystemAdaptee">The file system adaptee.</param>
        public ServerVersionControlSystem(String root, IPieServerFileSystem fileSystemAdaptee)
            : base(root, fileSystemAdaptee)
        {
            FileSystemAdaptee = fileSystemAdaptee;

            if(!IsProjectRoot(""))    throw new ArgumentException("The root does not specify a path to a project directory");
        }