public DirectorySetup(Uri path, DirectorySetupName name, Description description, DirectorySetupId id, DateTime created, DateTime?lastChange = null) { this.Path = path; this.Name = name; this.Description = description; this.ThumbnailUri = new Uri(@"\Thumbnails", UriKind.Relative); this.Id = id; this.Identity = Guid.NewGuid(); this.LastChange = lastChange ?? DateTime.Now; this.Created = created; }
public DirectorySetup(Uri path, DirectorySetupName name, Description description) : this(path, name, description, (DirectorySetupId)Guid.NewGuid(), DateTime.Now) { }
public DirectorySetup(DirectorySetup origin, Uri path, DirectorySetupName name, Description description) : this(path, name, description, origin.Id, origin.Created) { }
public SourceDirectory(SourceDirectoryId id, DirectoryPath filePath, DirectoryPath thumbnailSubDir, DirectorySetupName name) { Directory = filePath ?? throw new ArgumentNullException(nameof(filePath)); ThumbnailPath = thumbnailSubDir;//todo ?? throw new ArgumentNullException(nameof(thumbnailSubDir)); Name = name ?? throw new ArgumentNullException(nameof(name)); Id = id ?? throw new ArgumentNullException(nameof(id)); }