Unregister() public method

Unregister the proxy entry. Removes the entry from Dictionary and set the stop the timer to disable future reference
public Unregister ( MemBlock key, MemBlock value ) : bool
key MemBlock
value MemBlock
return bool
Example #1
0
        /// <summary>Stops publishing using the dht proxy.</summary>
        override public bool Stop()
        {
            _dht_proxy.Unregister(_private_dht_key, _p2p_address);

            bool first = base.EndFindingTAs();

            if (Interlocked.Exchange(ref _steady_state, 0) == 1)
            {
                FuzzyEvent fe = _fe;
                if (fe != null)
                {
                    _fe.TryCancel();
                }
                first = true;
            }

            return(first);
        }