コード例 #1
0
        public IListObserver <T> Subscribe(HandleItemAdded <T> add, HandleItemRemoved <T> remove, ObserverScope scope)
        {
            IListObserver <T> observer = Subscribe(add, remove);

            scope.AddUnsubscribe(() => Unsubscribe(observer));
            return(observer);
        }
コード例 #2
0
 public virtual void Subscribe(TCollectionObserver observer, ObserverScope scope)
 {
     Subscribe(observer);
     scope.AddUnsubscribe(() => Unsubscribe(observer));
 }
コード例 #3
0
 public override void Subscribe(IOrderedListObserver <T> observer, ObserverScope scope)
 {
     Subscribe(observer);
     scope.AddUnsubscribe(() => Unsubscribe(observer));
 }