Ejemplo n.º 1
0
        private static void SaveSAMLConfiguration(SAMLConfiguration samlConfiguration)
        {
            Console.WriteLine("Saving SAML configuration to {0}.", configurationFileName);

            XmlDocument xmlDocument = samlConfiguration.ToXml().OwnerDocument;

            using (XmlTextWriter xmlTextWriter = new XmlTextWriter(configurationFileName, null)) {
                xmlTextWriter.Formatting = Formatting.Indented;
                xmlDocument.Save(xmlTextWriter);
            }
        }
Ejemplo n.º 2
0
        private static void SaveConfiguration(SAMLConfiguration samlConfiguration)
        {
            Console.Write("SAML configuration file [saml.config]: ");

            var fileName = ReadLine();

            if (string.IsNullOrEmpty(fileName))
            {
                fileName = "saml.config";
            }

            using (XmlTextWriter xmlTextWriter = new XmlTextWriter(fileName, null))
            {
                xmlTextWriter.Formatting = Formatting.Indented;
                samlConfiguration.ToXml().OwnerDocument.Save(xmlTextWriter);
            }
        }
Ejemplo n.º 3
0
        private static void SaveSAMLConfiguration(SAMLConfiguration samlConfiguration)
        {
            Console.Write("Save SAML configuration to [{0}]: ", configurationFileName);
            string fileName = Console.ReadLine();

            if (string.IsNullOrEmpty(fileName))
            {
                fileName = configurationFileName;
            }

            XmlDocument xmlDocument = samlConfiguration.ToXml().OwnerDocument;

            using (XmlTextWriter xmlTextWriter = new XmlTextWriter(fileName, null))
            {
                xmlTextWriter.Formatting = Formatting.Indented;
                xmlDocument.Save(xmlTextWriter);
            }
        }
Ejemplo n.º 4
0
        private static void SaveSAMLConfiguration(SAMLConfiguration samlConfiguration)
        {
            Console.WriteLine("Saving SAML configuration to {0}.", configurationFileName);

            XmlDocument xmlDocument = samlConfiguration.ToXml().OwnerDocument;

            using (XmlTextWriter xmlTextWriter = new XmlTextWriter(configurationFileName, null)) {
                xmlTextWriter.Formatting = Formatting.Indented;
                xmlDocument.Save(xmlTextWriter);
            }
        }