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); } }
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); } }
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); } }
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); } }