V1/Toolbox.NETMF.Hardware.Port/PortHeartbeatBroker.cs
/// <summary>
/// Request a subscription for the specified instance
/// </summary>
/// <param name="instance">The instance asking for its subscription</param>
/// <returns>True, if the subscription has been succeeded</returns>
Request a subscription for the specified instance
Request a subscription for the specified instance
public bool Subscribe(IPortHeartbeat instance)
        {
            for (int i = 0; i < MaxSubscribers; i++)
            {
                if (this._subscriptions[i] == null)
                {
                    this._subscriptions[i] = instance;
                    this.RecalcCount();
                    return true;
                }
            }
            return false;
        }
public bool Subscribe ( IPortHeartbeat instance ) { for ( int i = 0 ; i < MaxSubscribers ; i ++ ) { if ( this . _subscriptions [ i ] == null ) { this . _subscriptions [ i ] = instance ; this . RecalcCount ( ) ; return true ; } } return false ; }
Request a subscription for the specified instance
Request a subscription for the specified instance
//a free cell was found: fill it //no more free rooms
True, if the subscription has been succeeded
True if the subscription has been succeeded
instance
IPortHeartbeat
The instance asking for its subscription
The instance asking for its subscription