Esempio n. 1
0
        /// <summary>
        /// Unsubscribes the contributor. Returns false if
        /// the current contributor is different from the one making the call.
        /// </summary>
        public bool UnsubscribeContributor(IGATTrackContributor contributor)
        {
            if (_contributor == null)
            {
                return(true);
            }

            if (_contributor != contributor)
            {
                return(false);
            }

            _contributor = null;

            return(true);
        }
Esempio n. 2
0
        /// <summary>
        /// Unsubscribes the contributor. Returns false if
        /// the current contributor is different from the one making the call.
        /// </summary>
        public bool UnsubscribeContributor( IGATTrackContributor contributor )
        {
            if( _contributor == null )
                return true;

            if( _contributor != contributor )
                return false;

            _contributor = null;

            return true;
        }