Пример #1
0
    /// <summary>
    /// Stop listening to this box, function will not be called when SendToLocal is called via
    /// FFMessageBoard or by other clients through a FFMessageBoard
    /// </summary>
    public bool Disconnect(EventListener function)
    {
        var deleted = messageList.Remove(function);

        if (deleted == true)
        {
            if (messageBoard != null)
            {
                messageBoard.IncrementVisitorCount();
                messageBoard.DecrementListenerCount();
            }
            --listenerCountLocal;
            ++visitorCountLocal;
            return(true);
        }
        return(false);
    }