public void Dispose() { if (_isDisposed) return; _isDisposed = true; lock (_parent._observerLock) { _parent._observers.Remove(_observer); } _parent = null; _observer = null; }
public Subscription(ObservableImpl<T> parent, IObserver<T> observer) { _parent = parent; _observer = observer; }