V1/Toolbox.NETMF.Hardware.Port/PortHeartbeatBroker.cs
/// <summary>
/// Remove the subscription for the specified instance
/// </summary>
/// <param name="instance">The instance being unsubscribed</param>
/// <returns>True, if the removal has been succeeded</returns>
Remove the subscription for the specified instance
Remove the subscription for the specified instance
public bool Unsubscribe(IPortHeartbeat instance)
        {
            for (int i = 0; i < MaxSubscribers; i++)
            {
                if (this._subscriptions[i] == instance)
                {
                    this._subscriptions[i] = null;
                    this.RecalcCount();
                    return true;
                }
            }
            return false;
        }
public bool Unsubscribe ( IPortHeartbeat instance ) { for ( int i = 0 ; i < MaxSubscribers ; i ++ ) { if ( this . _subscriptions [ i ] == instance ) { this . _subscriptions [ i ] = null ; this . RecalcCount ( ) ; return true ; } } return false ; }
Remove the subscription for the specified instance
Remove the subscription for the specified instance
//subscription found: remove it //no match was found
True, if the removal has been succeeded
True if the removal has been succeeded
instance
IPortHeartbeat
The instance being unsubscribed
The instance being unsubscribed