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