Beispiel #1
0
 public void StartSync(IEnumerable <ISyncElement> syncElements)
 {
     if (syncElements.Count() != 0)
     {
         JobController.StartJob(syncElements);
     }
 }
Beispiel #2
0
 public SyncManager(ILogger <SyncManager> logger,
                    ISyncElementFactory elementFactory)
 {
     _logger       = logger;
     JobController = new JobController();
     JobController.SyncErrorRaised += OnSyncErrorRaised;
     JobController.JobStarting     += OnTaskStarting;
     JobController.JobCompleted    += OnTaskCompleted;
     SyncElements = elementFactory.BuildSyncElements();
 }