예제 #1
0
			public void Dispose()
			{
				if (_isDisposed) return;
				_isDisposed = true;

				lock (_parent._observerLock)
				{
					_parent._observers.Remove(_observer);
				}

				_parent = null;
				_observer = null;
			}
예제 #2
0
			public Subscription(ObservableImpl<T> parent, IObserver<T> observer)
			{
				_parent = parent;
				_observer = observer;
			}