CmisSync.Lib.Queueing.SyncScheduler.Handle C# (CSharp) Метод

Handle() публичный Метод

Handles Config changes if the poll interval has been changed. Resets also the timer if a full sync event has been recognized.
public Handle ( ISyncEvent e ) : bool
e ISyncEvent Sync event.
Результат bool
        public override bool Handle(ISyncEvent e) {
            RepoConfigChangedEvent config = e as RepoConfigChangedEvent;
            if (config != null) {
                double newInterval = config.RepoInfo.PollInterval;
                if (newInterval > 0 && this.interval != newInterval) {
                    this.interval = newInterval;
                    this.Stop();
                    this.timer.Interval = this.interval;
                    this.Start();
                }

                return false;
            }

            StartNextSyncEvent start = e as StartNextSyncEvent;
            if(start != null && start.FullSyncRequested) {
                this.Stop();
                this.Start();
            }

            return false;
        }