Example #1
0
        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;
        }
Example #2
0
 internal static byte[] ItemIdToUniqueId(string itemId)
 {
     Pre.ThrowIfStringNullOrWhiteSpace(itemId, nameof(itemId));
     return(Encoding.ASCII.GetBytes(itemId));
 }