public bool UpdateLocaleIds(StringCollection localeIds)
{
if (localeIds == null) throw new ArgumentNullException("localeIds");
lock (m_lock)
{
string[] ids = localeIds.ToArray();
if (!Utils.IsEqual(ids, m_localeIds))
{
m_localeIds = ids;
// update diagnostics.
lock (m_diagnostics)
{
m_diagnostics.LocaleIds = new StringCollection(localeIds);
}
return true;
}
return false;
}
}