private static void Initialize() { if (FeedConfiguration.configuration != null) { return; } lock (FeedConfiguration.configLock) { configuration = ConfigurationSettings.GetConfig("feed.net") as FeedConfiguration; } }
public object Create(object parent, object configContext, System.Xml.XmlNode section) { this.Clear(); FeedConfiguration.configuration = this; try { if (section.HasChildNodes) { foreach (XmlNode node in section.ChildNodes) { string text = node.LocalName; text = string.IsInterned(text); if (text == "communication") { this.transportConfiguration.Load(node); continue; } if (text == "storage") { this.storageConfiguration.Load(node); continue; } } } } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.ToString()); FeedConfiguration.configuration = null; throw; } return(this); }
static FeedConfiguration() { FeedConfiguration.configuration = null; FeedConfiguration.configLock = new object(); }