// we want an event when our manager switches to active / passive
myManager.RuntimeSystem.RedundancyActive += MyManager_RedundancyActive;
myManager.RuntimeSystem.RedundancyPassive += MyManager_RedundancyPassive;
But how do I get the initial active/passive state ?
if (ETM.WCCOA.Internal.Resources.IsRedActive())
{
// active
}
else
{
// passive
}
The namespace “ETM.WCCOA.Internal” is provided for backward compatibility with older WinCC OA C# applications and shall not be used anymore. Please only use the functionalities provided by the “ETM.WCCOA” namespace.