/// <summary> /// Attempts to create a SaneServerConfiguration based on a supplied preset. This method will attempt to find the ViewStructure.xml file through reflection. /// </summary> /// <param name="preset">The preset to be created around</param> public SaneServerConfiguration(SaneServerPreset preset, Assembly assembly, String namespaceString) { switch (preset) { case SaneServerPreset.DEFAULT: _prefixes = new String[] { "http://+:80/" }; _dbPath = "Database\\SaneDB.db"; _resourceXml = Utility.fetchFromResource(assembly, namespaceString + "." + _resourceNamespace + "." + "ViewStructure.xml"); break; case SaneServerPreset.HTTPS: _prefixes = new String[] { "https://+:443/" }; _dbPath = "Database\\SaneDB.db"; _resourceXml = Utility.fetchFromResource(assembly, namespaceString + "." + _resourceNamespace + "." + "ViewStructure.xml"); break; } }