Opc.Ua.Server.CoreNodeManager.UnregisterSource C# (CSharp) Method

UnregisterSource() public method

Called when the source is no longer used.
When a source disappears it must either delete all of its nodes from the address space or unregister itself their source by calling RegisterSource with source == null. After doing that the source must call this method.
public UnregisterSource ( object source ) : void
source object
return void
        public void UnregisterSource(object source)
        {
            #if LEGACY_CORENODEMANAGER
            try
            {
                m_lock.Enter();

                IEventSource eventSource = source as IEventSource;

                if (eventSource != null)
                {
                    m_eventSources.Remove(source);
                }
            }
            finally
            {
                m_lock.Exit();
            } 
            #endif
        }
        #endregion