Esempio n. 1
0
 public ItemVersion(
     ItemId itemId,
     FileHashKey fileKey,
     Version version,
     IEnumerable <FileData> files = null)
     : this(
         ItemVersionId.New(),
         itemId,
         fileKey,
         version,
         DateTime.Now,
         null,
         files)
 {
 }
Esempio n. 2
0
 public ItemVersion(
     ItemVersionId id,
     ItemId itemId,
     FileHashKey fileKey,
     Version version,
     DateTime created,
     DateTime?lastChange          = null,
     IEnumerable <FileData> files = null)
 {
     Id         = id;
     ItemId     = itemId;
     FileKey    = fileKey;
     Version    = version;
     Created    = created;
     LastChange = lastChange ?? DateTime.Now;
     if (files != null)
     {
         this.Files.AddRange(files);
     }
 }