コード例 #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();
        }
コード例 #2
0
ファイル: AnalyzeJob.cs プロジェクト: yvanam/SyncPro
 public AnalyzeJob(SyncRelationship relationship)
     : base(relationship)
 {
     this.AnalyzeResult = new AnalyzeRelationshipResult();
 }
コード例 #3
0
ファイル: JobBase.cs プロジェクト: yvanam/SyncPro
        protected JobBase(SyncRelationship relationship)
        {
            Pre.ThrowIfArgumentNull(relationship, "relationship");

            this.Relationship = relationship;
        }