Esempio n. 1
0
 private VersionDataProxy(string versionHash, string filepath, string filename, Stream data,
                          DirectoryStructure directory) : base(filename, data, "")
 {
     this.directory   = directory;
     this.versionHash = versionHash;
     this.filepath    = filepath;
 }
Esempio n. 2
0
 /// <param name="hash">The hash of this Version</param>
 /// <param name="directory">The directory to load dependencies</param>
 /// <param name="changelog">An optional changelog to load VersionData hashes</param>
 public VersionProxy(string hash, DirectoryStructure directory, Changelog changelog = null) : base(null, hash)
 {
     this.directory = directory;
     this.changelog = changelog;
 }
Esempio n. 3
0
 /// <param name="hash">This Commit's hash</param>
 /// <param name="directory">The directory to load dependencies</param>
 public CommitProxy(string hash, DirectoryStructure directory) : base((Commit[])null, null, null, null, hash)
 {
     this.directory = directory;
 }
Esempio n. 4
0
 /// <param name="hash">The changelog's hash</param>
 /// <param name="directory">The directory to load dependencies</param>
 public ChangelogProxy(string hash, DirectoryStructure directory) : base(hash)
 {
     changelog      = null;
     this.directory = directory;
 }
Esempio n. 5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="versionHash">The identifier of the version the data is contained in</param>
 /// <param name="filepath">The relative path from the top level version folder</param>
 /// <param name="directory"></param>
 /// <returns></returns>
 public static VersionDataProxy Create(string versionHash, string filepath, string filename, DirectoryStructure directory, string hash)
 {
     return(new VersionDataProxy(versionHash, filepath, filename, (Stream)null, directory, hash));
 }