Source/NFX/ApplicationModel/CommonApplicationLogic.cs
/// <summary>
/// Registers an instance of IConfigSettings with application container to receive a call when
///  underlying app configuration changes
/// </summary>
/// <returns>True if settings instance was not found and was added</returns>
Registers an instance of IConfigSettings with application container to receive a call when
underlying app configuration changes
Registers an instance of IConfigSettings with application container to receive a call when underlying app configuration changes
public bool RegisterConfigSettings(IConfigSettings settings)
            {
                if (m_ShutdownStarted || settings==null) return false;
                lock(m_ConfigSettings)
                  if (!m_ConfigSettings.Contains(settings, ReferenceEqualityComparer<IConfigSettings>.Instance))
                  {
                     m_ConfigSettings.Add(settings);
                     return true;
                  }
                return false;
            }
public bool RegisterConfigSettings ( IConfigSettings settings ) { if ( m_ShutdownStarted || settings == null ) return false ; lock ( m_ConfigSettings ) if ( ! m_ConfigSettings . Contains ( settings , ReferenceEqualityComparer < IConfigSettings > . Instance ) ) { m_ConfigSettings . Add ( settings ) ; return true ; } return false ; }
Registers an instance of IConfigSettings with application container to receive a call when
underlying app configuration changes
Registers an instance of IConfigSettings with application container to receive a call when underlying app configuration changes
True if settings instance was not found and was added
True if settings instance was not found and was added
settings
IConfigSettings