Exemplo n.º 1
0
        public FileCopyHelper(
            SyncRelationship relationship,
            AdapterBase fromAdapter,
            AdapterBase toAdapter,
            EntryUpdateInfo updateInfo,
            ThrottlingManager throttlingManager,
            X509Certificate2 encryptionCertificate,
            CancellationToken cancellationToken,
            Action <CopyProgressInfo> progressChanged)
        {
            this.fromAdapter           = fromAdapter;
            this.toAdapter             = toAdapter;
            this.updateInfo            = updateInfo;
            this.throttlingManager     = throttlingManager;
            this.encryptionCertificate = encryptionCertificate;
            this.cancellationToken     = cancellationToken;
            this.progressChanged       = progressChanged;

            this.EncryptionMode = relationship.EncryptionMode;

            this.UpdateSyncEntry = true;

            this.syncProgressUpdateStopwatch = new Stopwatch();
        }
Exemplo n.º 2
0
 public AnalyzeJob(SyncRelationship relationship)
     : base(relationship)
 {
     this.AnalyzeResult = new AnalyzeRelationshipResult();
 }
Exemplo n.º 3
0
        protected JobBase(SyncRelationship relationship)
        {
            Pre.ThrowIfArgumentNull(relationship, "relationship");

            this.Relationship = relationship;
        }