Galactic.Configuration
Manages files containing strings used as an alternative to placing configuration information
in an application's web.config or application.config files.
This approaches allows for easier management of these items as they don't require a restart of the
application to manipulate and save the configuration information.
The strings can be (optionally) encrypted.
The full path to the file containing the configuration item.
The path to the folder containing the configuration item.
The name of the configuration item.
Whether the configuration item should be encrypted.
The value of the configuration item.
Loads a configuration item with the specified name from its file located
in a folder at the supplied path.
The path of the folder containing the configuration item.
The name of the configuration item.
Whether to store the item in an encrypted format.
(Optional) The value of the configuration item. (Supplying a null value will retrieve the value stored
in the item if it already exists).
(Optional) The event log to log exceptions to. May be null for no logging.
Whether the configuration item should be opened for reading only. Default: true
Creates a new configuration file that can then be loaded normally.
Note: This will NOT overwrite an existing file.
The path of the folder to create the configuration item.
The name of the configuration item to create.
True if the file was created or already exists, false if an error prevented it from being created.
Deletes the configuration item.
True if the item was deleted, false otherwise.
Retrieves the value of a configuration item from its file.
The event log to log exceptions to. May be null for no logging.
The value of the configuration item or null if not found.
Logs an exception to the event log.
The exception to log.
The event log to log the exception to.
True if the exception was logged successfully. False otherwise.
Writes a configuration item's value to a file.
The value to write to the file.
The event log to log exceptions to. May be null for no logging.
True if the write was successful, false otherwise.
Retrieves an AES 256 encrypted value from the configuration file.
The event log to log exceptions to. May be null for no logging.
The value or null if not found or it could not be decrypted.
Writes an AES 256 encrypted value to its configuration file.
The value to write to the file.
The event log to log execptions to. May be null for no logging.
True if the write was successful, false otherwise.