Opc.Ua.Com.Client.ComAeClientNodeManager.OnServerReconnected C# (CSharp) Method

OnServerReconnected() public method

Called when client manager has reconnected to the COM server.
public OnServerReconnected ( object state ) : void
state object
return void
        public void OnServerReconnected(object state)
        {
            try
            {
                // refetch the type information.
                DoMetadataUpdate(null);
                
                lock (Lock)
                {
                    foreach (ComAeSubscriptionClient subscription in m_subscriptions.Values)
                    {
                        subscription.Create();
                    }
                }
            }
            catch (Exception e)
            {
                Utils.Trace(e, "Could not re-create subscription after reconnect.");
            }
        }