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