public RestoreJob(SyncRelationship relationship, List <SyncEntry> syncEntries, string restorePath) : base(relationship) { Pre.ThrowIfArgumentNull(relationship, nameof(relationship)); Pre.ThrowIfArgumentNull(syncEntries, nameof(syncEntries)); Pre.ThrowIfStringNullOrWhiteSpace(restorePath, nameof(restorePath)); this.syncEntries = syncEntries; this.restorePath = restorePath; }
internal static byte[] ItemIdToUniqueId(string itemId) { Pre.ThrowIfStringNullOrWhiteSpace(itemId, nameof(itemId)); return(Encoding.ASCII.GetBytes(itemId)); }