Beispiel #1
0
        public WebServiceSettingsNode Build()
        {
            WebServiceSettingsNode      rootNode = new WebServiceSettingsNode();
            WebServiceURLCollectionNode node     = new WebServiceURLCollectionNode();
            WebServiceURLNode           webServiceURLNode;

            foreach (WebServiceURL data in webServiceSettings.WebServiceURLs)
            {
                webServiceURLNode = new WebServiceURLNode(data);
                node.AddNode(webServiceURLNode);

                if (webServiceURLNode.Name == webServiceSettings.DefaultWebServiceURL)
                {
                    defaultNode = webServiceURLNode;
                }
            }

            rootNode.AddNode(node);
            rootNode.DefaultWebServiceURLSetting = defaultNode;

            return(rootNode);
        }
 private void OnWebServiceSettingNodeRemoved(object sender, ConfigurationNodeChangedEventArgs e)
 {
     this.webServiceURLNode = null;
 }