/// <summary> /// Stop the monitoring the block. /// </summary> /// <param name="context">The context.</param> public bool StopMonitoring(ServerSystemContext context) { m_monitoringCount--; if (m_monitoringCount == 0) { UnderlyingSystem system = context.SystemHandle as UnderlyingSystem; if (system != null) { UnderlyingSystemBlock block = system.FindBlock(m_blockId); if (block != null) { block.StopMonitoring(); } } } return(m_monitoringCount != 0); }