コード例 #1
0
 public SyncTask(List <string> localPaths, Uri serverDirUri, DateTime createDate, SyncTimer syncTimer, DateTime?lastSyncDate = null, int backupCount = 0)
 {
     LocalPaths         = localPaths;
     ServerDirectoryUri = serverDirUri;
     CreateDate         = createDate;
     LastSyncDate       = lastSyncDate;
     BackupCount        = backupCount;
     SyncTimer          = syncTimer;
 }
コード例 #2
0
        public static SyncTask CreateSyncTask(List <string> localPaths, Uri serverDirUri, SyncTimer syncTimer, int backupCount = 0)
        {
            SyncTask syncTask = new SyncTask(localPaths, serverDirUri, DateTime.Now, syncTimer, null, backupCount);

            return(syncTask);
        }