Ejemplo n.º 1
0
 private static void Initialize()
 {
     if (FeedConfiguration.configuration != null)
     {
         return;
     }
     lock (FeedConfiguration.configLock)
     {
         configuration = ConfigurationSettings.GetConfig("feed.net") as FeedConfiguration;
     }
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 static FeedConfiguration()
 {
     FeedConfiguration.configuration = null;
     FeedConfiguration.configLock    = new object();
 }