public static IList <Exception> LoadSection() { var newSection = new SipServerConfigurationSection(); newSection.Load(); var errors = newSection.ListErrors(); if (errors.Count == 0) { System.Threading.Interlocked.Exchange <SipServerConfigurationSection>(ref section, newSection); } return(errors); }
public static IList<Exception> LoadSection() { var newSection = new SipServerConfigurationSection(); newSection.Load(); var errors = newSection.ListErrors(); if (errors.Count == 0) System.Threading.Interlocked.Exchange<SipServerConfigurationSection>(ref section, newSection); return errors; }