private static EnabledAuthenticationType GetAuthenticationType(XmlNode node, EnabledAuthenticationType defaultAuthenticationType)
        {
            var attribute = node.Attributes["AuthFlags"];

            if (attribute == null || string.IsNullOrEmpty(attribute.Value))
            {
                return(defaultAuthenticationType);
            }

            var authFlagValue = attribute.Value;
            var authArray     = authFlagValue.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries);

            if (authArray.Length == 1 &&
                authFlagValue.IndexOf(AnonymousAuth, StringComparison.OrdinalIgnoreCase) > -1)
            {
                return(EnabledAuthenticationType.Anonymous);
            }

            return(EnabledAuthenticationType.Windows);
        }
        private static EnabledAuthenticationType GetAuthenticationType(XmlNode node, EnabledAuthenticationType defaultAuthenticationType)
        {
            var attribute = node.Attributes["AuthFlags"];
            if (attribute == null || string.IsNullOrEmpty(attribute.Value))
            {
                return defaultAuthenticationType;
            }

            var authFlagValue = attribute.Value;
            var authArray = authFlagValue.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries);
            if (authArray.Length == 1 &&
                authFlagValue.IndexOf(AnonymousAuth, StringComparison.OrdinalIgnoreCase) > -1)
            {
                return EnabledAuthenticationType.Anonymous;
            }

            return EnabledAuthenticationType.Windows;
        }