protected override void OnSessionCreated()
{
lock (Lock)
{
// fetch the configuration.
m_configuration = Endpoint.ParseExtension<ComProxyConfiguration>(null);
if (m_configuration == null)
{
m_configuration = new ComProxyConfiguration();
}
// update the mapping and pass the new session to other objects.
m_mapper.Initialize(Session, m_configuration);
m_groupManager.Session = Session;
m_browseCacheManager.BrowseBlockSize = m_configuration.BrowseBlockSize;
// save the configuration.
Endpoint.UpdateExtension<ComProxyConfiguration>(null, m_configuration);
SaveConfiguration();
}
}