public StartMonitoring ( TagsChangedEventHandler callback ) : void | ||
callback | TagsChangedEventHandler | The callback to use when reporting changes. |
리턴 | void |
/// <summary> /// Starts the monitoring the block. /// </summary> /// <param name="context">The context.</param> public void StartMonitoring(ServerSystemContext context) { if (m_monitoringCount == 0) { UnderlyingSystem system = context.SystemHandle as UnderlyingSystem; if (system != null) { UnderlyingSystemBlock block = system.FindBlock(m_blockId); if (block != null) { block.StartMonitoring(OnTagsChanged); } } } m_monitoringCount++; }