Web Toolbar by Wibiya

How to Save the engine Configuration


A place to ask questions or discuss issues relating to implementing applications with Axiom. If you are unsure of where to post, post here.

Passer-by

Posts: 1

Joined: Thu May 24, 2012 6:56 pm

Post Thu May 24, 2012 9:12 pm

How to Save the engine Configuration

Hi, I'm trying to save the configuration generate by the ConfigurationManager but i dont get how it's works.

What i trying to do is someting like

  Code:
IConfigurationManager ConfigurationManager = ConfigurationManagerFactory.CreateDefault();
var root = new Root("myLog.log");

if (ConfigurationManager.ShowConfigDialog(root))
{
    ConfigurationManager.SaveConfiguration(root);
}


If i try to do this i get a error and haven't find in the documentation very much explications.

What i like to do is Save the values in one file in a specific place designated by me.

I will like a example of retrieving the saved configuration if possible to.

Tanks very much :D
User avatar

Team Member
Team Member

Posts: 1591

Joined: Thu Mar 02, 2006 11:29 pm

Location: Boston, MA, USA

Post Wed May 30, 2012 6:05 am

Re: How to Save the engine Configuration

First, what error do you get?
Second, the default configuration handler in the Axiom Framework, uses the app.config file to store the configuration. If you wanted to do something different, you would need to provide an implementation of ConfigurationManager that did what you expected.
Third, to load a configuration use ConfigurationManager.LoadConfiguration( Axiom.Root );
Borrillis
The Steward of Axiom

Return to General Q & A

Who is online

Users browsing this forum: Google [Bot] and 0 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.