Пример #1
0
 public void StartSync(IEnumerable <ISyncElement> syncElements)
 {
     if (syncElements.Count() != 0)
     {
         JobController.StartJob(syncElements);
     }
 }
Пример #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();
 }