Beispiel #1
0
        /// <summary>
        /// Called when the observation is complete and we should go away
        /// </summary>
        public void OnComplete()
        {
            if (_unsubscribeAction != null)
            {
                _unsubscribeAction();
                _unsubscribeAction = null;
            }

            _producer.OnComplete();
        }
        /// <summary>
        /// Called when the observation is complete and we should go away
        /// </summary>
        public void OnComplete()
        {
            if (_unsubscribeAction != null)
            {
                _unsubscribeAction();
                _unsubscribeAction = null;
            }

            _producer.OnComplete();

            using (_ready)
            {
                _ready.Close();
            }
        }