Exemplo n.º 1
0
            internal Synchronizer(INotifyPropertyChanged source, INotifyPropertyChanged target, PropertiesSettings settings)
            {
                this.Settings         = settings;
                this.dirtyTrackerNode = DirtyTrackerNode.GetOrCreate(source, target, settings, true);
                this.dirtyTrackerNode.Value.Changed += this.OnDirtyTrackerNodeChanged;
                this.borrowedQueue = ConcurrentQueuePool <DirtyTrackerNode> .Borrow();

                this.AddToSyncQueue(this.dirtyTrackerNode.Value);
            }
Exemplo n.º 2
0
 internal DirtyTracker(INotifyPropertyChanged x, INotifyPropertyChanged y, PropertiesSettings settings)
 {
     this.Settings = settings;
     this.node     = DirtyTrackerNode.GetOrCreate(x, y, settings, isRoot: true);
     this.node.Value.PropertyChanged += this.OnNodeChanged;
 }