예제 #1
0
        private AuthenticationConfig DeserializeAuthenticationConfig(XmlNode root)
        {
            var section = root.SelectSingleNode("authentication");

            if (section == null)
            {
                return(AuthenticationConfig.Default);
            }

            var config = new AuthenticationConfig();

            config.LoadFrom(section);
            return(config);
        }