Opc.Ua.Com.Server.ComAe2Proxy.OnSessionCreated C# (CSharp) Method

OnSessionCreated() protected method

Called when a new session is created.
protected OnSessionCreated ( ) : void
return void
        protected override void OnSessionCreated()
        {
            lock (Lock)
            {
                // fetch the configuration.
                m_configuration = Endpoint.ParseExtension<ComAe2ProxyConfiguration>(null);

                if (m_configuration == null)
                {
                    m_configuration = new ComAe2ProxyConfiguration();
                }

                Session session = Session;

                // update the mapping and pass the new session to other objects.
                m_mapper.Initialize(session, m_configuration);

                // save the configuration.
                Endpoint.UpdateExtension<ComAe2ProxyConfiguration>(null, m_configuration);
                SaveConfiguration();

                // create the browser.
                m_browser = new ComAe2Browser(this, m_configuration, m_mapper);
                m_conditionManager.Initialize();
            }
        }