public IListObserver <T> Subscribe(HandleItemAdded <T> add, HandleItemRemoved <T> remove, ObserverScope scope) { IListObserver <T> observer = Subscribe(add, remove); scope.AddUnsubscribe(() => Unsubscribe(observer)); return(observer); }
public virtual void Subscribe(TCollectionObserver observer, ObserverScope scope) { Subscribe(observer); scope.AddUnsubscribe(() => Unsubscribe(observer)); }
public override void Subscribe(IOrderedListObserver <T> observer, ObserverScope scope) { Subscribe(observer); scope.AddUnsubscribe(() => Unsubscribe(observer)); }