Loading multiple configurations from file

We are looking at implementing a multi-tenancy scenario so that we can expose two service provider IDs. The KB article that describes this shows the two configurations being created programatically while we would prefer to load each configuration from its own XML file. I have tried creating/selecting each configuration before calling SAMLConfiguration.Load( filename ) but it always seems to load into a default configuration rather than the currently selected one. Is there anyway to load multiple configurations from file?

You can use the SAMLConfiguration(XmlElement) constructor to load a SAML configuration from an XML file.
For example:

XmlDocument xmlDocument = new XmlDocument();
xmlDocument.PreserveWhitespace = true;
xmlDocument.Load(“tenant1-saml.config”);

SAMLConfiguration samlConfiguration = new SAMLConfiguration(xmlDocument.DocumentElement);

SAMLConfigurations.Configurations[“tenantID1”] = samlConfiguration;

You would then repeat for each of the other tenant SAML configuration files.