private void LoadCommands(DataStore dataStore, XmlNode dataStoreNode) { DataStorageManager mngr = dataStore.DataStorageManager; //TODO: Other Command Types foreach(XmlNode commandNode in dataStoreNode.SelectNodes("commands/dataAccessCommand")) { try{ string name = GetAttribute(commandNode, "name", true); //TODO: commandtype string cmdText = commandNode.InnerText.Trim(); IDataAccessCommand cmd = dataStore.CreateDataAccessCommand(cmdText); string timeout = GetAttribute(commandNode, "commandTimeout", false); if(timeout != null){ cmd.CommandTimeout = int.Parse(timeout); } dataStore.Commands.Add(name, cmd); } catch (Exception e){ throw new ConfigurationException(e.Message, e, commandNode); } } }